Closed
Description
GetArgumentHelp()
andArgumentHelp
are deprecated in favor ofGetArgumentInfo()
andArgumentInfo
. The new functionality retains everything and addsProperty
to return the backingPropertyInfo
.- The
ArgumentDictionary
property ofArguments
now combines repeated short and long argument names into a single key of the name which appears first, but only if a Type is supplied toParse()
.- For example, if 'a' and "abc" were the short and long names for an argument, and if the backing Type for this argument was a collection, and "-a foo --abc bar" were supplied on the command line, the resulting dictionary entry would have key "a" and values "foo, bar". If the first argument was "abc" instead of "a", the dictionary key would be "abc".
- For repeated arguments not backed by a collection Type, the value of the dictionary entry will be the last value appearing in the command line string.
- If a Type is not supplied to
Parse()
, all arguments are assumed to be single value (non-collection) Types, and combining multiple arguments of the same name will result in only the last value being retained.
- The
ArgumentList
property has been added toArguments
to provide the full, individual list of parsed arguments with order preserved.