Class Required
- java.lang.Object
-
- com.github.rvesse.airline.examples.simple.Required
-
- All Implemented Interfaces:
ExampleRunnable
@Command(name="required", description="A command with required options") public class Required extends java.lang.Object implements ExampleRunnable
A command that has some required options
-
-
Constructor Summary
Constructors Constructor Description Required()
-
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
-
required
@Option(name="--required", title="Value", arity=1, description="A required option") private java.lang.String required
-
optional
@Option(name="--optional", title="Value", arity=1, description="An optional option") private java.lang.String optional
-
-
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
- Returns:
- Exit code
-
-