*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment
Class CLIOptionsConfig
java.lang.Object
com.sas.services.deployment.CLIOptionsConfig
@SASScope("ALL")
@BinaryCompatibilityOnly
public final class CLIOptionsConfig
extends Object
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 |
- Since:
- 9.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli.OptionCreates 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.StringGets the command line option "isPrompting" used to specify whether the user should be prompted for options if passing options via System.in.static StringgetOptionValueFromSystemIn(String optionName, String promptMessage, String charsetName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CLIOptionsConfig
public CLIOptionsConfig()Constructs a default instance.- Since:
- 9.2
-
-
Method Details
-
getNameOfOptionIsPrompting
public 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.- Returns:
- Command line option "isPrompting" used to designate whether or
not the user should be prompted for options if passing options via System.in.
A non-
nullreference is always returned. - Since:
- 9.2
-
createOptionIsPrompting
public 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.- Returns:
- Option used to designate whether
the user should be prompted to specify options if options are
being passed into the application using System.in.
A non-
nullreference is always returned. - Since:
- 9.2
-
getOptionValueFromSystemIn
public static String getOptionValueFromSystemIn(String optionName, String promptMessage, String charsetName) throws ServiceException - Throws:
ServiceException
-