mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Fixed build
This commit is contained in:
parent
3a07b7e141
commit
57778cb3a6
@ -17,7 +17,7 @@ int main(int argc, char * argv[]) {
|
|||||||
program.add_argument("-v", "--verbose", "VERBOSE")
|
program.add_argument("-v", "--verbose", "VERBOSE")
|
||||||
.default_value([]() { return true; });
|
.default_value([]() { return true; });
|
||||||
|
|
||||||
program.parse_args_2(argc, argv);
|
program.parse_args(argc, argv);
|
||||||
|
|
||||||
auto config_file = program.get<std::string>("--config");
|
auto config_file = program.get<std::string>("--config");
|
||||||
auto num_iters = program.get<int>("-n");
|
auto num_iters = program.get<int>("-n");
|
||||||
|
Loading…
Reference in New Issue
Block a user