mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Update README.md
This commit is contained in:
parent
aed278419d
commit
e06890af97
@ -142,7 +142,7 @@ program.add_argument("-o", "--output")
|
||||
|
||||
#### Accessing optional arguments without default values
|
||||
|
||||
If you do not require an optional argument to present but has no good default value for it, you can combine testing and accessing the argument as following:
|
||||
If you require an optional argument to be present but have no good default value for it, you can combine testing and accessing the argument as following:
|
||||
|
||||
```cpp
|
||||
if (auto fn = program.present("-o")) {
|
||||
|
Loading…
Reference in New Issue
Block a user