Class BadGrandchild
java.lang.Object
com.github.rvesse.airline.examples.inheritance.Parent
com.github.rvesse.airline.examples.inheritance.Child
com.github.rvesse.airline.examples.inheritance.BadGrandchild
- All Implemented Interfaces:
ExampleRunnable
@Command(name="bad-grandchild",
description="An illegal command which attempts to overrides an option defined by a parent without explicitly declaring the override")
public class BadGrandchild
extends Child
When inheriting from existing classes the default behaviour is to prevent
overriding of options as Airline assumes the conflicting definitions are an
error on the part of the developer. See
GoodGrandchild
for an example
of how to do option overrides correctly.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Trying to override the option here will fail because we didn't explicitly state we were overriding -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
parent
@Option(name="--parent", description="An option can be overridden if we are explicit about it") private boolean parentTrying to override the option here will fail because we didn't explicitly state we were overriding
-
-
Constructor Details
-
BadGrandchild
public BadGrandchild()
-
-
Method Details
-
main
-