public class UserDirSwitch extends AbstractCommandLineSwitch implements CommandLineSwitch
[--userdir <user-directory>]
Modifier and Type | Field and Description |
---|---|
static String |
USER_DIR_SWITCH
Switch for specifying the user directory.
|
Constructor and Description |
---|
UserDirSwitch()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
consumeSwitch(String commandLineSwitch,
String[] followUpArgs)
Consumes the switch.
|
String |
getHelpText()
Gets a help text for this switch.
|
int |
getNumFollowUpArgs()
Gets the number of follow-up args required for this switch.
|
String |
getUserDir()
Gets the provided application user directory, if this switch was consumed, else null.
|
checkConsumeSwitchArgs, supportsSwitch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsSwitch
public static final String USER_DIR_SWITCH
public int getNumFollowUpArgs()
getNumFollowUpArgs
in interface CommandLineSwitch
public void consumeSwitch(String commandLineSwitch, String[] followUpArgs)
consumeSwitch
in interface CommandLineSwitch
commandLineSwitch
- the command line switchfollowUpArgs
- the required follow-up args.public String getHelpText()
getHelpText
in interface CommandLineSwitch
public String getUserDir()
Copyright © 2012–2019 Drombler. All rights reserved.