mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
LibCore: Support fine-grained failure behavior for ArgsParser
This commit is contained in:
parent
1dc31842cb
commit
250f8eccf3
4 changed files with 38 additions and 30 deletions
|
@ -58,7 +58,7 @@ int main(int argc, char** argv)
|
|||
outln("Event type can be one of: sample, context_switch, page_fault, kmalloc and kfree.");
|
||||
};
|
||||
|
||||
if (!args_parser.parse(argc, argv, false)) {
|
||||
if (!args_parser.parse(argc, argv, Core::ArgsParser::FailureBehavior::PrintUsage)) {
|
||||
print_types();
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue