public class CLIManager
extends java.lang.Object
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 and Description |
---|
CLIManager() |
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.