C++ argument parser library, tests
This project builds and defines the build2 package for args, which is a simple, small, flexible, single-header C++11 argument parsing library.
Usage
Make sure to add the stable section of the cppget.org
repository to your project's repositories.manifest
to be able to fetch this package.
:
role: prerequisite
location: https://pkg.cppget.org/1/stable
# trust: ...
If the stable section of cppget.org
is not an option then add this Git repository itself instead as a prerequisite.
:
role: prerequisite
location: https://github.com/build2-packaging/args.git
Add the respective dependency in your project's manifest
file to make the package available for import.
depends: args ^6.4.7
The library can be imported by the following declaration in a buildfile
.
import args = args%lib{args}
Configuration
There are no configuration options available.
Issues
Currently, there are no known issues.
Contributing
Thank you in advance for your help and contribution to keep this package up-to-date.
Please, file an issue on GitHub for questions, bug reports, or to recommend updating the package version.
If you're making a pull request to fix bugs or update the package version yourself, refer to the build2
Packaging Guidelines.
version | 6.4.7 |
---|---|
license | MIT |
repository | https://pkg.cppget.org/1/testing |
download | args-tests-6.4.7.tar.gz |
sha256 | 9fe8ddba5ca83f037ade1297988738a22b3d2d8c3ee839111f38ecd5eb8248ab |
project | args |
---|---|
url | github.com/Taywee/args |
doc-url | taywee.github.io/args/ |
package-url | github.com/build2-packaging/args/ |
taywee@gmx.com | |
package-email | packaging@build2.org |
Depends (1)
catch2 ^2.13.7 |
Reviews
fail | 0 |
---|---|
pass | 1 |
Changes
* 6.0.0 Change Reader to functor type, breaking change. Change Reader functor to allow any return type, but specifically need bool-testable return for NOEXCEPT use. Change List and Map templates into template templates to enforce proper type use and to clean up user template invocations (i.e. `args::ValueFlagList<std::string, std::unordered_set<std::string>>` becomes `args::ValueFlagList<std::string, std::unordered_set>`, also breaking change. * 5.0.0 Implemented proper subparsers. Added better C++11 style. Improved documentation. * 4.0.0 Changed all wording: ArgFlag -> ValueFlag Counter -> CounterFlag PosArg -> Positional Argument now solely refers to command line arguments. Value refers to the argument that flags or positionals can take and store. Positional is a positional option, which contains a value. Option refers to flags and positionals, which can contain values.