public class StringClumpOption extends Object implements CmdLineOption
StringClumpOption
class models a command line
option that may be attached to a string value. Includes options
like: -DNDEBUG
. Here, if the option key is "D", then
the value is "NDEBUG".OptionParser
Modifier and Type | Field and Description |
---|---|
String |
value
The value of the option as specified on the command line,
or null if option not present.
|
Constructor and Description |
---|
StringClumpOption(String key)
Creates a new string clump option.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns the string that the
OptionParser seeks
on the command line in association with the CmdLineOption . |
public String value
public String getKey()
CmdLineOption
OptionParser
seeks
on the command line in association with the CmdLineOption
.
Initial '-' not included.getKey
in interface CmdLineOption
OptionParser
Copyright © 2023. All rights reserved.