-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
GetArgumentHelp()andArgumentHelpare deprecated in favor ofGetArgumentInfo()andArgumentInfo. The new functionality retains everything and addsPropertyto return the backingPropertyInfo.- The
ArgumentDictionaryproperty ofArgumentsnow 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
ArgumentListproperty has been added toArgumentsto provide the full, individual list of parsed arguments with order preserved.