Package | Description |
---|---|
org.apache.commons.cli2 | |
org.apache.commons.cli2.commandline |
Modifier and Type | Interface and Description |
---|---|
interface |
WriteableCommandLine
A CommandLine that detected values and options can be written to.
|
Modifier and Type | Class and Description |
---|---|
class |
CommandLineImpl
Instances of CommandLine represent a command line that has been processed
according to the definition supplied to the parser.
|
class |
DefaultingCommandLine
Manages a queue of default CommandLines.
|
class |
PreferencesCommandLine
A CommandLine implementation using the Preferences API, useful when
constructing a complex DefaultingCommandLine
This implementation uses the children of a single preference node to populate
the CommandLine.
|
class |
PropertiesCommandLine
A CommandLine implementation using a java Properties instance, useful for
constructing a complex DefaultingCommandLine
Options are keyed from their property name and presence in the Properties
instance is taken as presence in the CommandLine.
|
class |
WriteableCommandLineImpl
A WriteableCommandLine implementation allowing Options to write their
processed information to a CommandLine.
|
Modifier and Type | Method and Description |
---|---|
CommandLine |
Parser.parse(String[] arguments)
Parse the arguments according to the specified options and properties.
|
CommandLine |
Parser.parseAndHelp(String[] arguments)
Parse the arguments according to the specified options and properties and
displays the usage screen if the CommandLine is not valid or the help
option was specified.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultingCommandLine.appendCommandLine(CommandLine commandLine)
Adds a CommandLine instance to the back of the queue.
|
void |
DefaultingCommandLine.insertCommandLine(int index,
CommandLine commandLine)
Adds a CommandLine instance to a specified position in the queue.
|
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.