pgrep: Add --ignore-case as an alias for the -i option

This commit is contained in:
Tim Ledbetter 2023-05-30 17:51:14 +01:00 committed by Andreas Kling
parent 8706c88370
commit f95e6ee849
Notes: sideshowbarker 2024-07-17 07:11:12 +09:00
2 changed files with 3 additions and 3 deletions

View File

@ -5,13 +5,13 @@ pgrep - look up processes based on name
## Synopsis
```sh
$ pgrep [-d delimiter] [-i] [--invert-match] <process-name>
$ pgrep [-d delimiter] [--ignore-case] [--invert-match] <process-name>
```
## Options
* `-d`, `--delimiter`: Set the string used to delimit multiple pids
* `-i`: Make matches case-insensitive
* `-i`, `--ignore-case`: Make matches case-insensitive
* `-v`, `--invert-match`: Select non-matching lines
## Arguments

View File

@ -27,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
Core::ArgsParser args_parser;
args_parser.add_option(pid_delimiter, "Set the string used to delimit multiple pids", "delimiter", 'd', nullptr);
args_parser.add_option(case_insensitive, "Make matches case-insensitive", nullptr, 'i');
args_parser.add_option(case_insensitive, "Make matches case-insensitive", "ignore-case", 'i');
args_parser.add_option(invert_match, "Select non-matching lines", "invert-match", 'v');
args_parser.add_positional_argument(pattern, "Process name to search for", "process-name");
args_parser.parse(args);