diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-07-12 22:13:38 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-14 00:24:24 +0100 |
commit | 3d516420378d5015b21c3500e910c1337935ea89 (patch) | |
tree | 3398e8d1c67a561e92db41737eea31bb87273325 /Userland/Utilities/run-tests.cpp | |
parent | 810b9daa63a0568d60232f11bf36d778dd784b5e (diff) | |
download | serenity-3d516420378d5015b21c3500e910c1337935ea89.zip |
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.
Diffstat (limited to 'Userland/Utilities/run-tests.cpp')
-rw-r--r-- | Userland/Utilities/run-tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/run-tests.cpp b/Userland/Utilities/run-tests.cpp index aee2a25589..f2ad1b23b7 100644 --- a/Userland/Utilities/run-tests.cpp +++ b/Userland/Utilities/run-tests.cpp @@ -322,7 +322,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) Core::ArgsParser args_parser; 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', |