Class ModuleReuse
java.lang.Object
com.github.rvesse.airline.examples.modules.ModuleReuse
- All Implemented Interfaces:
ExampleRunnable
@Command(name="module-reuse",
description="A command that demonstrates re-use of modules and composition with locally defined options")
public class ModuleReuse
extends Object
implements ExampleRunnable
Here we have another command which reuses module classes we've defined and
also adds locally defined options, we can
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HelpOption
<ExampleRunnable> private VerbosityModule
A field marked withAirlineModule
will also be scanned for options -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
help
-
verbosity
A field marked withAirlineModule
will also be scanned for options -
args
-
-
Constructor Details
-
ModuleReuse
public ModuleReuse()
-
-
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
-