mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibCore: Replace the ArgsParser option argument setting with an enum
Replacement conditions for `requires_argument` have been chosen based on what would be most convenient for implementing an eventual optional argument mode.
This commit is contained in:
committed by
Linus Groh
parent
810b9daa63
commit
3d51642037
Notes:
sideshowbarker
2024-07-17 08:59:36 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/3d51642037 Pull-request: https://github.com/SerenityOS/serenity/pull/14571 Reviewed-by: https://github.com/linusg ✅
@@ -95,7 +95,7 @@ int main(int argc, char** argv)
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(print_times, "Show duration of each test", "show-time", 't');
|
||||
args_parser.add_option(Core::ArgsParser::Option {
|
||||
.requires_argument = true,
|
||||
.argument_mode = Core::ArgsParser::OptionArgumentMode::Required,
|
||||
.help_string = "Show progress with OSC 9 (true, false)",
|
||||
.long_name = "show-progress",
|
||||
.short_name = 'p',
|
||||
|
||||
Reference in New Issue
Block a user