Skip to content

Commit eab249e

Browse files
committed
docs update
1 parent 1add75a commit eab249e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/tutorial.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,19 @@ or
106106
parser.add_<positional/optional>_argument<value_type>("argument", "a");
107107
```
108108

109-
> [!NOTE]
109+
> [!IMPORTANT]
110110
>
111111
> The library supports any argument value types which meet the following requirements:
112112
>
113113
> - The type is [constructible from](https://en.cppreference.com/w/cpp/concepts/constructible_from) `const std::string&` or the stream extraction operator - `std::istream& operator>>` is defined for the type.
114+
>
115+
> **IMPORTANT:** The argument parser will always use direct initialization from `std::string` and will use the extraction operator only if an argument's value type cannot be initialized from `std::string`.
116+
>
114117
> - The type satisfies the [`std::semiregular`](https://en.cppreference.com/w/cpp/concepts/semiregular.html) concept - is default initializable and copyable.
115118
116-
> [!IMPORTANT]
119+
> [!NOTE]
117120
>
118-
> If the `value_type` is not provided, `std::string` will be used.
121+
> The default value type of any argument is `std::string`.
119122
120123
You can also add boolean flags:
121124

0 commit comments

Comments
 (0)