mirror of
https://github.com/sametersoylu/argument-parser.git
synced 2026-05-28 20:08:10 +00:00
chore: refactor class names.
feat: introduce parser settings for controlling the exit behavior.
This commit is contained in:
@@ -42,7 +42,7 @@ template <typename T> struct parser_trait<std::vector<T>> {
|
||||
using namespace argument_parser::v2::flags;
|
||||
|
||||
auto main() -> int {
|
||||
argument_parser::v2::parser parser(true);
|
||||
argument_parser::v2::parser parser({.should_exit_on_help = false});
|
||||
|
||||
new_argument()
|
||||
.positional("count")
|
||||
|
||||
Reference in New Issue
Block a user