java.lang.Object
com.github.rvesse.airline.examples.simple.Simple
All Implemented Interfaces:
ExampleRunnable

@Command(name="simple", description="A simple example command") public class Simple extends Object implements ExampleRunnable
A simple example that demonstrates most of the basic concepts

We use the Command annotation to indicate that a class is going to represent a command and then the Option annotation to indicate fields whose values should be populated by options

  • Constructor Details

    • Simple

      public Simple()
  • Method Details

    • main

      public static void main(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 interface ExampleRunnable
      Returns:
      Exit code