Class CommandLineParser

java.lang.Object
com.aspectran.shell.command.CommandLineParser

public class CommandLineParser extends Object
The Command Line Parser.
  • Constructor Details

    • CommandLineParser

      public CommandLineParser(String commandLine)
  • Method Details

    • shift

      public void shift()
    • getCommandLine

      public String getCommandLine()
    • getCommandName

      public String getCommandName()
    • setCommandName

      public void setCommandName(String commandName)
    • getArgs

      public String[] getArgs()
    • hasArgs

      public boolean hasArgs()
    • parseOptions

      public ParsedOptions parseOptions(Options options) throws OptionParserException
      Throws:
      OptionParserException
    • getRedirectionList

      public List<OutputRedirection> getRedirectionList()
      Returns a list of the output redirection extracted from the command line.
      Returns:
      a list of the output redirection