Class Parent
java.lang.Object
com.github.rvesse.airline.examples.inheritance.Parent
- All Implemented Interfaces:
ExampleRunnable
- Direct Known Subclasses:
Child
@Command(name="parent",
description="A parent command")
public class Parent
extends Object
implements ExampleRunnable
We can use standard Java inheritance with commands and the child commands
will inherit options defined on their parents
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
help
-
parent
-
-
Constructor Details
-
Parent
public Parent()
-
-
Method Details
-
main
-
run
public int run()Description copied from interface:ExampleRunnable
Runs the command and returns an exit code that the application should return- Specified by:
run
in interfaceExampleRunnable
- Returns:
- Exit code
-