mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-05 07:34:40 +00:00
Update README.md
This commit is contained in:
parent
02f40c3721
commit
4dc61b679e
@ -85,7 +85,9 @@ program.add_argument("--verbose", "-v")
|
|||||||
|
|
||||||
program.parse_args({ "./main", "--verbose" });
|
program.parse_args({ "./main", "--verbose" });
|
||||||
|
|
||||||
auto a = program.get<bool>("--verbose"); // true
|
if (program["--verbose'] == true) { // true
|
||||||
|
// enable verbose logging
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compound Arguments
|
### Compound Arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user