1
Fork 0
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:
Jelle Raaijmakers 2021-06-06 01:11:56 +02:00 committed by Andreas Kling
parent 1dc31842cb
commit 250f8eccf3
4 changed files with 38 additions and 30 deletions

View file

@ -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);
}