Class GoodGrandchild
java.lang.Object
com.github.rvesse.airline.examples.inheritance.Parent
com.github.rvesse.airline.examples.inheritance.Child
com.github.rvesse.airline.examples.inheritance.GoodGrandchild
- All Implemented Interfaces:
ExampleRunnable
@Command(name="good-grandchild",
description="A legal command which overrides an option defined by a parent")
public class GoodGrandchild
extends Child
When inheriting from existing classes it is possible to override previously
defined options but only if you are explicit about it. In this case Airline
uses the bottom-most definition of the option as the effective definition
Note that any values set for options are propagated to all declarations in the inheritance tree since an ancestor class will not have access to fields set in the descendants.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GoodGrandchild
public GoodGrandchild()
-
-
Method Details
-
main
-