public class ServerPackCreator.CommandlineParser
extends java.lang.Object
| Constructor and Description |
|---|
CommandlineParser(java.lang.String[] args)
Create a new CommandlineParser from the passed commandline-arguments with which
ServerPackCreator was started.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<java.lang.String> |
getLanguageToUse()
Get the locale in which ServerPackCreator should be run in, wrapped in an
Optional. |
protected ServerPackCreator.Mode |
getModeToRunIn()
Get the mode in which ServerPackCreator should be run in.
|
java.util.Optional<java.io.File> |
propertiesFile()
If ServerPackCreator was executed with the
--setup-argument as well as a
properties-file, then this method will return the specified properties file, wrapped in an
Optional, so you can check whether it is present or not. |
public CommandlineParser(java.lang.String[] args)
getModeToRunIn() and
getLanguageToUse().getLanguageToUse() is wrapped in an
Optional to quickly determine whether a language was specified.args - Array of commandline-arguments with which ServerPackCreator was started.
Typically passed from ServerPackCreator.protected ServerPackCreator.Mode getModeToRunIn()
protected java.util.Optional<java.lang.String> getLanguageToUse()
Optional.Optional.public java.util.Optional<java.io.File> propertiesFile()
--setup-argument as well as a
properties-file, then this method will return the specified properties file, wrapped in an
Optional, so you can check whether it is present or not.