1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:37:34 +00:00

Utilities: Make watch stop parsing options on first non-option

This commit is contained in:
Jelle Raaijmakers 2021-06-07 21:56:33 +02:00 committed by Andreas Kling
parent fb6d141601
commit 3c7ddf383a

View file

@ -103,6 +103,7 @@ int main(int argc, char** argv)
Vector<const char*> 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');