Skip to content

Attribute and method for specifying the behavior of repeated uses of collection options #2

Description

@GoogleCodeExporter
When an option for collection options is passed to the parser multiple times, 
the default behavior is to append all values to the collection.

Add an attribute and method for autowired and stand alone options which lets 
the user of the parser specify a behavior for repeated use.

  * CollectionRepeatBehavior.Clear
  * CollectionRepeatBehavior.Append (default, append values from repeated uses to collection)
  * CollectionRepeatBehavior.Error

Clear means that collection values should be cleared and only the values of the 
last use should be kept. When used with stand alone options, the handler should 
only be called for the values of the first use.

Original issue reported on code.google.com by michael.praschl on 21 Mar 2013 at 7:29

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions