Class Child
- java.lang.Object
-
- com.github.rvesse.airline.examples.inheritance.Parent
-
- com.github.rvesse.airline.examples.inheritance.Child
-
- All Implemented Interfaces:
ExampleRunnable
- Direct Known Subclasses:
BadGrandchild
,GoodGrandchild
@Command(name="child", description="A child command inherits options from its parents and ") public class Child extends Parent
-
-
Constructor Summary
Constructors Constructor Description Child()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
int
run()
Runs the command and returns an exit code that the application should return
-
-
-
Field Detail
-
child
@Option(name="--child", arity=1, title="Value", description="An option provided by the child") private double child
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
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
- Overrides:
run
in classParent
- Returns:
- Exit code
-
-