mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
Utilities: Make watch
stop parsing options on first non-option
This commit is contained in:
parent
fb6d141601
commit
3c7ddf383a
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
Vector<const char*> command;
|
Vector<const char*> command;
|
||||||
Core::ArgsParser args_parser;
|
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.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(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');
|
args_parser.add_option(flag_noheader, "Turn off the header describing the command and interval", "no-title", 't');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue