Package megamek.common.commandLine
Class MegaMekCommandLineParser
java.lang.Object
megamek.common.commandLine.AbstractCommandLineParser
megamek.common.commandLine.MegaMekCommandLineParser
This class parses the options passed into to MegaMek from the command line.
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.commandLine.AbstractCommandLineParser
AbstractCommandLineParser.ParseException -
Field Summary
Fields inherited from class megamek.common.commandLine.AbstractCommandLineParser
OPTION_PREFIX, TOK_EOF, TOK_LITERAL, TOK_OPTION -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class megamek.common.commandLine.AbstractCommandLineParser
getArgValue, getPosition, getTokenType, getTokenValue, hasNext, nextArg, nextToken, parse, setToken, setTokenValue
-
Constructor Details
-
MegaMekCommandLineParser
-
-
Method Details
-
dedicatedServer
public boolean dedicatedServer() -
host
public boolean host() -
client
public boolean client() -
quick
public boolean quick() -
writeGif
public boolean writeGif() -
ratGenEditor
public boolean ratGenEditor()Flag that indicates the option for the RAT Generator editor- Returns:
- Whether the RAT Generator editor should be invoked
-
getRestArgs
- Returns:
- the
arrayof the unprocessed arguments
-
help
- Specified by:
helpin classAbstractCommandLineParser
-
start
Description copied from class:AbstractCommandLineParserReal entry point of parser- Specified by:
startin classAbstractCommandLineParser- Throws:
AbstractCommandLineParser.ParseException- if the parser fails
-