|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.cli.CLIManager
Utility for managing and parsing MavenSession's command-line.
implementation note: This is the class to modify when adding, removing or modifying MavenSession's command-line options and flags.
This class uses the commons-cli library for command-line parsing.
Constructor Summary | |
CLIManager()
|
Method Summary | |
static void |
displayHelp()
Display usage information based upon current command-line option configuration. |
static void |
displayInfo()
Display system information. |
static org.apache.commons.cli.CommandLine |
parse(java.lang.String[] args)
Parse a string-array of command-line arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CLIManager()
Method Detail |
public static org.apache.commons.cli.CommandLine parse(java.lang.String[] args) throws org.apache.commons.cli.ParseException
This will parse the arguments against the configured
maven command-line options, and return a CommandLine
object which may be queried for the presence of flags
and options and their arguments, if any.
args
- The command-line arguments to parse.
CommandLine
result.
org.apache.commons.cli.ParseException
- If an error occurs while parsing
the command-line options.public static void displayHelp()
public static void displayInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |