mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Everywhere: Use ArgsParser::parse() with Main::Arguments directly
Use the updated API everywhere we are currently manually passing in `arguments.argc` and `arguments.argv`.
This commit is contained in:
committed by
Brian Gianforcaro
parent
7720644ae2
commit
2fbcab46bf
@@ -196,7 +196,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(cpu, "Create CPU graph", "cpu", 'C', "cpu");
|
||||
args_parser.add_option(memory, "Create memory graph", "memory", 'M', "memory");
|
||||
args_parser.parse(arguments.argc, arguments.argv);
|
||||
args_parser.parse(arguments);
|
||||
|
||||
if (!cpu && !memory) {
|
||||
printf("At least one of --cpu or --memory must be used");
|
||||
|
||||
Reference in New Issue
Block a user