Class ByteCalculator
- java.lang.Object
-
- com.github.rvesse.airline.examples.userguide.parser.ByteCalculator
-
- All Implemented Interfaces:
ExampleRunnable
@Command(name="byte-calc", description="Computes the number of bytes") public class ByteCalculator extends java.lang.Object implements ExampleRunnable
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Long
bytes
-
Constructor Summary
Constructors Constructor Description ByteCalculator()
-
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
-
bytes
@Option(name={"-b","--bytes"}, description="Quantity of bytes, optionally expressed in compact form e.g. 1GB", typeConverterProvider=KiloAs1024.class) private java.lang.Long bytes
-
-
Method Detail
-
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
-
main
public static void main(java.lang.String[] args)
-
-