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/Libraries/LibTest | |
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/Libraries/LibTest')
-rw-r--r-- | Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp b/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp index 45cbd8bc40..9496615516 100644 --- a/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp +++ b/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp @@ -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', |