summaryrefslogtreecommitdiff
path: root/Userland/Utilities/run-tests.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-07-12 22:13:38 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-14 00:24:24 +0100
commit3d516420378d5015b21c3500e910c1337935ea89 (patch)
tree3398e8d1c67a561e92db41737eea31bb87273325 /Userland/Utilities/run-tests.cpp
parent810b9daa63a0568d60232f11bf36d778dd784b5e (diff)
downloadserenity-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.cpp2
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',