java.lang.Object
com.github.rvesse.airline.examples.inheritance.Parent
All Implemented Interfaces:
ExampleRunnable
Direct Known Subclasses:
Child

@Command(name="parent", description="A parent command") public class Parent extends Object implements ExampleRunnable
We can use standard Java inheritance with commands and the child commands will inherit options defined on their parents
  • Field Details

  • Constructor Details

    • Parent

      public Parent()
  • 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