mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
pgrep: Add --ignore-case
as an alias for the -i
option
This commit is contained in:
parent
8706c88370
commit
f95e6ee849
Notes:
sideshowbarker
2024-07-17 07:11:12 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/f95e6ee849 Pull-request: https://github.com/SerenityOS/serenity/pull/19155
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user