You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YT-CPPAP-26: Split the implementation to separate header files
- Split the library implementation into multiple header files
- Changed the license info in all implementation files
- Changed the names of some elements to better describe their purpose
Copy file name to clipboardExpand all lines: README.md
+28-27Lines changed: 28 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,7 @@ Command-line argument parser for C++20
11
11
12
12
## Overview
13
13
14
-
The goal of the project was to create a light, intuitive and simple to use command-line argument parser library for the `C++20` and newer standards.
15
-
16
-
The `CPP-AP` library does not require installing any additional tools or heavy libraries, like with `boost::program_options`. Much like with the `Doctest` framework - the only thing you need to do is copy the `argument_parser.hpp` file into the include directory of your project and you're set to go.
14
+
`CPP-AP` is a lightweight and feature-rich command-line argument parsing library, designed as an alternative to `boost::program_options`. It offers a modern, intuitive interface allowing for straightforward argument configuration and parsing.
17
15
18
16
> [!NOTE]
19
17
> [v1.0](https://github.com/SpectraL519/cpp-ap/commit/9a9e5360766b732f322ae2efe3cf5ec5f9268eef) of the library has been developed for the *Team Programming* course at the *Wrocław University of Science and Technology*.
@@ -201,35 +199,38 @@ Parameters which can be specified for both positional and optional arguments inc
201
199
202
200
-`action` - a function performed after reading an argument's value.
203
201
Actions are represented as functions, which take the argument's value as an argument. There are two types of actions:
.action<ap::void_action>([](double& value) { value = 1. / value; });
214
-
```
209
+
-`transform` actions | `value_type(const value_type&)` - applied to the parsed value. The returned value will be used to initialize the argument's value.
Actions can also be used to perform some value checking logic, e.g. the predefined `check_file_exists` which checks if a file with a given name exists:
222
+
Actions can also be used to perform some value checking logic instead of actualy modifying or transforming a value, as e.g. the predefined `check_file_exists` which verifies whether a file with a given name exists:
0 commit comments