Skip to content

Isolate arguments into their own class and allow them to be validated

Thomas Flori requested to merge github/fork/jochenvdv/master into master

Created by: jochenvdv

See issue #23

This changes the API of Option, introduces the Argument class and modifies OptionParser, CommandLineParser and their tests to use the new API. Arguments are now also validated if they have a validation function set.

  • Argument objects can be added to an option (22e0be5)
  • Arguments can optionally be validated by setting a function which receives the parsed argument and returns a boolean (fddcbfd)

If you have any questions or remarks, let me know. I'm quite new to Git and this is my first ever real pull request, so forgive me for any oddities. I will read up on branching and other Git techniques.

Merge request reports