Skip to content

Commit ac1d351

Browse files
committed
version bump + docs update
1 parent bcc02bc commit ac1d351

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else()
77
endif()
88

99
project(cpp-ap
10-
VERSION 2.3.0
10+
VERSION 2.3.1
1111
DESCRIPTION "Command-line argument parser for C++20"
1212
HOMEPAGE_URL "https://github.com/SpectraL519/cpp-ap"
1313
LANGUAGES CXX

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = CPP-AP
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = 2.3.0
51+
PROJECT_NUMBER = 2.3.1
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

docs/tutorial.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ Command Result
313313
./program -i input.txt -o myfile.txt Parsing success; Printing data to the `myfile.txt` file
314314
```
315315
316+
> [!TIP]
317+
>
318+
> The setter of the `default_value` parameter accepts any type that is convertible to the argument's value type.
319+
316320
#### 5. `choices` - A list of valid argument values.
317321
318322
The `choices` parameter takes as an argument an instance of `std::initializer_list` or any `std::ranges::range` type such that its value type is convertible to the argument's `value_type`.
@@ -434,7 +438,8 @@ Command Result
434438
435439
> [!TIP]
436440
>
437-
> The `implicit_value` parameter is extremely useful when combined with default value (e.g. in case of boolean flags - see [Adding Arguments](#adding-arguments)).
441+
> - The `implicit_value` parameter is extremely useful when combined with default value (e.g. in case of boolean flags - see [Adding Arguments](#adding-arguments)).
442+
> - The setter of the `implicit_value` parameter accepts any type that is convertible to the argument's value type.
438443
439444
#### 4. On-flag actions - For optional arguments, apart from value actions, you can specify on-flag actions which are executed immediately after parsing an argument's flag.
440445

0 commit comments

Comments
 (0)