diff --git a/Base/usr/share/man/man1/pgrep.md b/Base/usr/share/man/man1/pgrep.md index ecc4030d124..235d90045bb 100644 --- a/Base/usr/share/man/man1/pgrep.md +++ b/Base/usr/share/man/man1/pgrep.md @@ -5,13 +5,13 @@ pgrep - look up processes based on name ## Synopsis ```sh -$ pgrep [-d delimiter] [-i] [--invert-match] +$ pgrep [-d delimiter] [--ignore-case] [--invert-match] ``` ## 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 diff --git a/Userland/Utilities/pgrep.cpp b/Userland/Utilities/pgrep.cpp index 24e2fd88a34..4c7fa0b29c6 100644 --- a/Userland/Utilities/pgrep.cpp +++ b/Userland/Utilities/pgrep.cpp @@ -27,7 +27,7 @@ ErrorOr 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);