Package com.aspectran.shell.command
Class CommandLineParser
java.lang.Object
com.aspectran.shell.command.CommandLineParser
The Command Line Parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
getArgs()
Returns a list of the output redirection extracted from the command line.boolean
hasArgs()
parseOptions
(Options options) void
setCommandName
(String commandName) void
shift()
-
Constructor Details
-
CommandLineParser
-
-
Method Details
-
shift
public void shift() -
getCommandLine
-
getCommandName
-
setCommandName
-
getArgs
-
hasArgs
public boolean hasArgs() -
parseOptions
- Throws:
OptionParserException
-
getRedirectionList
Returns a list of the output redirection extracted from the command line.- Returns:
- a list of the output redirection
-