Interface GenericCliCmd

All Known Implementing Classes:
About, Help, Version

public interface GenericCliCmd
Generic command.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.cli.Option[]
    Get the options that have to be processed for determining if this command should run.
    void
    process(org.apache.commons.cli.CommandLine cmd)
    Process the parsed options and run the command if needed.
  • Method Details

    • getOptions

      org.apache.commons.cli.Option[] getOptions()
      Get the options that have to be processed for determining if this command should run.
      Returns:
      the array of options this command relies upon.
    • process

      void process(org.apache.commons.cli.CommandLine cmd)
      Process the parsed options and run the command if needed.
      Parameters:
      cmd - the processed command line options.