1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

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
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -27,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
Core::ArgsParser args_parser; 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(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_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.add_positional_argument(pattern, "Process name to search for", "process-name");
args_parser.parse(args); args_parser.parse(args);