mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Utilities: Make xargs
stop parsing options on first non-option
This commit is contained in:
parent
3c7ddf383a
commit
afbbcde150
Notes:
sideshowbarker
2024-07-18 12:38:44 +09:00
Author: https://github.com/gmta
Commit: afbbcde150
Pull-request: https://github.com/SerenityOS/serenity/pull/7896
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ int main(int argc, char** argv)
|
|||
int max_bytes_for_one_command = ARG_MAX;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.set_stop_on_first_non_option(true);
|
||||
args_parser.set_general_help("Read arguments from stdin and interpret them as command-line arguments for another program. See also: 'man xargs'.");
|
||||
args_parser.add_option(placeholder, "Placeholder string to be replaced in arguments", "replace", 'I', "placeholder");
|
||||
args_parser.add_option(split_with_nulls, "Split input items with the null character instead of newline", "null", '0');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue