|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.CLIOptionsConfig
public final class CLIOptionsConfig
Command line options used to specify general purpose configuration controls.
Option | Description |
---|---|
isPrompting |
Name of the option used to specify whether the user should
be prompted to specify options when using System.in
<true | false >
If no prompts should be used when options are specified via
System.in specify
a value of |
Constructor Summary | |
---|---|
CLIOptionsConfig()
Constructs a default instance. |
Method Summary | |
---|---|
org.apache.commons.cli.Option |
createOptionIsPrompting()
Creates the command line option used to designate whether the user should be prompted to specify options if options are being passed into the application using System.in. |
java.lang.String |
getNameOfOptionIsPrompting()
Gets the command line option "isPrompting" used to specify whether the user should be prompted for options if passing options via System.in. |
static java.lang.String |
getOptionValueFromSystemIn(java.lang.String optionName,
java.lang.String promptMessage,
java.lang.String charsetName)
Obtains the value of the specified option using "-optionName |
Constructor Detail |
---|
public CLIOptionsConfig()
Method Detail |
---|
public java.lang.String getNameOfOptionIsPrompting()
null
reference is always returned.public org.apache.commons.cli.Option createOptionIsPrompting()
null
reference is always returned.public static java.lang.String getOptionValueFromSystemIn(java.lang.String optionName, java.lang.String promptMessage, java.lang.String charsetName) throws ServiceException
optionName
- The name of the option.promptMessage
- Message to be output on stdout to prompt for the option or
null
if a prompt will not be used.charsetName
- Name of the character set being used to write to stdin.
If a null
character set name is specified, then
the default encoding will be used.
null
if the option is undefined.
ServiceException
- if an exception occurs.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |