mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Shell: Make time
stop parsing options on first non-option
This commit is contained in:
parent
a32fe8df33
commit
00fc0a6cf0
1 changed files with 1 additions and 0 deletions
|
@ -878,6 +878,7 @@ int Shell::builtin_time(int argc, const char** argv)
|
|||
Vector<const char*> args;
|
||||
|
||||
Core::ArgsParser parser;
|
||||
parser.set_stop_on_first_non_option(true);
|
||||
parser.add_positional_argument(args, "Command to execute with arguments", "command", Core::ArgsParser::Required::Yes);
|
||||
|
||||
if (!parser.parse(argc, const_cast<char**>(argv), Core::ArgsParser::FailureBehavior::PrintUsage))
|
||||
|
|
Loading…
Add table
Reference in a new issue