public class ArgumentHelper extends Object
| Constructor and Description |
|---|
ArgumentHelper(String[] args,
String serverName)
Parse the main arguments
If the list network flag is specified, a list of internet interface will be displayed and the program will exit
|
ArgumentHelper(String[] args,
String serverName,
net.sourceforge.argparse4j.inf.ArgumentParser baseParser)
Parse the main arguments
If the list network flag is specified, a list of internet interface will be displayed and the program will exit
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Path> |
getConfigFile() |
String |
getInterface() |
Integer |
getPort() |
public ArgumentHelper(@NonNull
String[] args,
@NonNull
String serverName)
args - The main argumentsserverName - The server namepublic ArgumentHelper(@NonNull
String[] args,
@NonNull
String serverName,
net.sourceforge.argparse4j.inf.ArgumentParser baseParser)
args - The main argumentsserverName - The server namebaseParser - If you want to extend the default parser with other flagsCopyright © 2019. All rights reserved.