mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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:
parent
7720644ae2
commit
2fbcab46bf
8 changed files with 8 additions and 8 deletions
|
@ -274,7 +274,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.add_option(command_to_execute, "Execute this command inside the terminal", nullptr, 'e', "command");
|
||||
args_parser.add_option(keep_open, "Keep the terminal open after the command has finished executing", nullptr, 'k');
|
||||
|
||||
args_parser.parse(arguments.argc, arguments.argv);
|
||||
args_parser.parse(arguments);
|
||||
|
||||
if (keep_open && !command_to_execute) {
|
||||
warnln("Option -k can only be used in combination with -e.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue