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

public class Version extends Object implements GenericCliCmd
Show Sparta Cli version cmd.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

    • Version

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