public class CommandLineArguments
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CLIENT_OPTION |
|
static java.lang.String |
GAME_LOCALE |
|
static java.lang.String |
HELP_OPTION |
|
static java.lang.String |
SERVER_OPTION |
|
static java.lang.String |
VERSION_OPTION |
| Constructor | Description |
|---|---|
CommandLineArguments() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.commons.cli.Options |
createCommandLineOptions() |
|
boolean |
isClient(org.apache.commons.cli.CommandLine cmdLine) |
Check weather the application is started as client.
|
boolean |
isServer(org.apache.commons.cli.CommandLine cmdLine) |
Check weather the application is started as server.
|
boolean |
isStandalone(org.apache.commons.cli.CommandLine cmdLine) |
Check wether the commandline arguments for standalone are set.
|
org.apache.commons.cli.CommandLine |
parseCommandLine(org.apache.commons.cli.Options options,
java.lang.String[] args) |
|
void |
persistAsPropertyFile(org.apache.commons.cli.CommandLine cmdLine) |
Set the spring profiles and write some properties, which will be used by Spring.
|
void |
printHelp(org.apache.commons.cli.Options options) |
public static final java.lang.String VERSION_OPTION
public static final java.lang.String HELP_OPTION
public static final java.lang.String GAME_LOCALE
public static final java.lang.String CLIENT_OPTION
public static final java.lang.String SERVER_OPTION
public org.apache.commons.cli.Options createCommandLineOptions()
public org.apache.commons.cli.CommandLine parseCommandLine(org.apache.commons.cli.Options options,
java.lang.String[] args)
public void printHelp(org.apache.commons.cli.Options options)
public boolean isStandalone(org.apache.commons.cli.CommandLine cmdLine)
cmdLine - command line objectpublic boolean isServer(org.apache.commons.cli.CommandLine cmdLine)
cmdLine - command line objectpublic boolean isClient(org.apache.commons.cli.CommandLine cmdLine)
cmdLine - command line objectpublic void persistAsPropertyFile(org.apache.commons.cli.CommandLine cmdLine)
cmdLine - command line objectCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.