java.lang.Object
be.kuleuven.cs.distrinet.sparta.cli.cmd.Help
All Implemented Interfaces:
GenericCliCmd

public class Help extends Object implements GenericCliCmd
Command to print SPARTA help message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Help(com.google.inject.Provider<CliProcessor> cliProc)
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Help

      @Inject public Help(com.google.inject.Provider<CliProcessor> cliProc)
  • Method Details

    • getOptions

      public org.apache.commons.cli.Option[] getOptions()
      Description copied from interface: GenericCliCmd
      Get the options that have to be processed for determining if this command should run.
      Specified by:
      getOptions in interface GenericCliCmd
      Returns:
      the array of options this command relies upon.
    • process

      public void process(org.apache.commons.cli.CommandLine cmd)
      Description copied from interface: GenericCliCmd
      Process the parsed options and run the command if needed.
      Specified by:
      process in interface GenericCliCmd
      Parameters:
      cmd - the processed command line options.