From 3c7ddf383aa09c1619c9b075b7730a832699f653 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 7 Jun 2021 21:56:33 +0200 Subject: [PATCH] Utilities: Make `watch` stop parsing options on first non-option --- Userland/Utilities/watch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Utilities/watch.cpp b/Userland/Utilities/watch.cpp index 7b6955b70e..aa96f360ea 100644 --- a/Userland/Utilities/watch.cpp +++ b/Userland/Utilities/watch.cpp @@ -103,6 +103,7 @@ int main(int argc, char** argv) Vector command; Core::ArgsParser args_parser; + args_parser.set_stop_on_first_non_option(true); args_parser.set_general_help("Execute a command repeatedly, and watch its output over time."); args_parser.add_option(opt_interval, "Amount of time between updates", "interval", 'n', "seconds"); args_parser.add_option(flag_noheader, "Turn off the header describing the command and interval", "no-title", 't');