类 CommandLineArgs
java.lang.Object
cn.taketoday.core.env.CommandLineArgs
A simple representation of command line arguments, broken into "option arguments" and
"non-option arguments".
- 从以下版本开始:
- 4.0
- 作者:
- Chris Beams
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddNonOptionArg(String value) Add the given value to the list of non-option arguments.voidaddOptionArg(String optionName, String optionValue) Add an option argument for the given option name and add the given value to the list of values associated with this option (of which there may be zero or more).booleancontainsOption(String optionName) Return whether the option with the given name was present on the command line.Return the list of non-option arguments specified on the command line.Return the set of all option arguments present on the command line.getOptionValues(String optionName) Return the list of values associated with the given option.
-
字段详细资料
-
nonOptionArgs
-
optionArgs
-
-
构造器详细资料
-
CommandLineArgs
CommandLineArgs()
-
-
方法详细资料
-
addOptionArg
Add an option argument for the given option name and add the given value to the list of values associated with this option (of which there may be zero or more). The given value may benull, indicating that the option was specified without an associated value (e.g. "--foo" vs. "--foo=bar"). -
getOptionNames
Return the set of all option arguments present on the command line. -
containsOption
Return whether the option with the given name was present on the command line. -
getOptionValues
Return the list of values associated with the given option.nullsignifies that the option was not present; empty list signifies that no values were associated with this option. -
addNonOptionArg
Add the given value to the list of non-option arguments. -
getNonOptionArgs
Return the list of non-option arguments specified on the command line.
-