diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-01-27 20:19:39 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-28 13:50:18 +0100 |
commit | 92765825358daaed11fa105ca64cf2c7819e5563 (patch) | |
tree | 8753e0a72174cbf58ffab812acb33254950cfee4 /Userland/wc.cpp | |
parent | e7512ae2d186b292ce08fccdb316ce690fa16ef1 (diff) | |
download | serenity-92765825358daaed11fa105ca64cf2c7819e5563.zip |
LibCore: Rewrite CArgsParser
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).
Diffstat (limited to 'Userland/wc.cpp')
0 files changed, 0 insertions, 0 deletions