Skip to content

Breaking changes for v3.0.0 #47

Closed
Closed
@jpdillingham

Description

@jpdillingham
  • GetArgumentHelp() and ArgumentHelp are deprecated in favor of GetArgumentInfo() and ArgumentInfo. The new functionality retains everything and adds Property to return the backing PropertyInfo.
  • The ArgumentDictionary property of Arguments 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 to Parse().
    • 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 to Arguments to provide the full, individual list of parsed arguments with order preserved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions