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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
child
@Option(name="--child", arity=1, title="Value", description="An option provided by the child") private double child
-
-
Constructor Details
-
Child
public Child()
-
-
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
- Overrides:
run
in classParent
- Returns:
- Exit code
-