mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-17 16:42:54 +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
Notes:
sideshowbarker
2024-07-18 00:50:12 +09:00
Author: https://github.com/mustafaquraish
Commit: 2fbcab46bf
Pull-request: https://github.com/SerenityOS/serenity/pull/11027
8 changed files with 8 additions and 8 deletions
|
@ -78,7 +78,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.add_option(is_selection_mode, "Show entry in parent folder", "select", 's');
|
||||
args_parser.add_option(ignore_path_resolution, "Use raw path, do not resolve real path", "raw", 'r');
|
||||
args_parser.add_positional_argument(initial_location, "Path to open", "path", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(arguments.argc, arguments.argv);
|
||||
args_parser.parse(arguments);
|
||||
|
||||
auto app = GUI::Application::construct(arguments.argc, arguments.argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue