1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

ps: Add the -A option

This is identical to our existing `-e` option, but both are required by
POSIX.
This commit is contained in:
Sam Atkins 2023-05-14 13:38:48 +01:00 committed by Andreas Kling
parent 02ee93d6c9
commit afb55d9fd8
2 changed files with 4 additions and 3 deletions

View file

@ -58,7 +58,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
StringView pid_list;
Core::ArgsParser args_parser;
args_parser.add_option(every_process_flag, "Show every process", nullptr, 'e');
args_parser.add_option(every_process_flag, "Show every process", nullptr, 'A');
args_parser.add_option(every_process_flag, "Show every process (Equivalent to -A)", nullptr, 'e');
args_parser.add_option(full_format_flag, "Full format", nullptr, 'f');
args_parser.add_option(pid_list, "A comma-separated list of PIDs. Only processes matching those PIDs will be selected", nullptr, 'q', "pid-list");
args_parser.parse(arguments);