Package megamek.common.commandLine
Class ClientServerCommandLineParser
java.lang.Object
megamek.common.commandLine.AbstractCommandLineParser
megamek.common.commandLine.ClientServerCommandLineParser
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionClientServerCommandLineParser(String[] args, String parent, boolean server, boolean client, boolean host) -
Method Summary
Methods inherited from class megamek.common.commandLine.AbstractCommandLineParser
getArgValue, getPosition, getTokenType, getTokenValue, hasNext, nextArg, nextToken, parse, setToken, setTokenValue
-
Constructor Details
-
ClientServerCommandLineParser
-
-
Method Details
-
getPort
public int getPort()- Returns:
- port option value or
-1if it wasn't set
-
getPassword
- Returns:
- the password option value, will be null if not set.
-
getAnnounceUrl
-
getRegister
public boolean getRegister() -
getMailProperties
-
getPlayerName
-
getServerAddress
-
getUseDefaults
public boolean getUseDefaults() -
getSaveGameFileName
- Returns:
- the game file name option value or
nullif it wasn't set
-
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
-
getResolver
public ClientServerCommandLineParser.Resolver getResolver(String defaultPassword, int defaultPort, String defaultServerAddress, String defaultPlayerName)
-