public class DefaultRuntimeConfigurationParser extends java.lang.Object implements RuntimeConfigurationParser
Constructor and Description |
---|
DefaultRuntimeConfigurationParser() |
Modifier and Type | Method and Description |
---|---|
RuntimeConfiguration |
parse(java.lang.String... arguments)
Parses the command-line arguments.
|
public RuntimeConfiguration parse(java.lang.String... arguments)
Parses the command-line arguments. There are currently 4 fixed arguments:
--noColor = Disables the colorized output of Savant --debug = Enables debug output --version = Displays the version --help = Displays the help message --listTargets = Lists the build targets
If any other argument starts with --
then it is considered a switch. Switches can optionally have values
using the equals sign like this:
--switch=value
All other arguments are considered targets to execute.
This parser does care about ordering of the arguments at all.
parse
in interface RuntimeConfigurationParser
arguments
- The CLI arguments.