Skip to content

Commit

Permalink
LibCore: Rewrite CArgsParser
Browse files Browse the repository at this point in the history
This is a complete reimplementation of CArgsParser with a different API.

Now, CArgsParser properly supports and distinguishes between:
* Positional arguments (required or not)
* Options

Options can be short and/or long.

The API allows you to add custom option and argument types. A few types are
pre-implemented for convenience:
* Boolean options (take no value)
* String and integer options (take a required value)
* String and integer arguments
* Vector-of-string arguments

This commit doesn't include changes for all the users of CArgsParser (see next
commit for that).
  • Loading branch information
bugaevc authored and awesomekling committed Jan 28, 2020
1 parent e7512ae commit 9276582
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 238 deletions.
Loading

0 comments on commit 9276582

Please sign in to comment.