Class CmdLine

java.lang.Object
net.sf.colossus.cmdline.CmdLine

public class CmdLine extends Object
Class CmdLine represents a parsed command line for one run of a program.
Author:
David Ripton
  • Field Details

  • Constructor Details

    • CmdLine

      public CmdLine(Opts opts, String[] args)
  • Method Details

    • optIsSet

      public boolean optIsSet(char optch)
      Return true iff the option has been seen.
    • optIsSet

      public boolean optIsSet(String name)
      Return true iff the option has been seen.
    • getOptValue

      public String getOptValue(char optch)
      Return the option value as a String. Will raise if the option has not been set or does not take an argument.
    • getOptValue

      public String getOptValue(String name)
      Return the option value as a String. Will raise if the option has not been set or does not take an argument.
    • getLeftovers

      public ArrayList<String> getLeftovers()
      Return an ArrayList of all leftover arguments that were found on the command line after valid options were parsed.