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

profile: Add -a to warning message when -e, -d, -w xor -f is not set

-a and -p both require only one of the flags.
We will inform the user of this for both -a and -p <PID>.
This commit is contained in:
PrestonLTaylor 2023-05-02 22:12:56 +01:00 committed by Andreas Kling
parent e1c1aaa956
commit 6811ab9c3b

View file

@ -82,7 +82,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (!pid_argument.is_empty() || all_processes) {
if (!(enable ^ disable ^ wait ^ free)) {
warnln("-p <PID> requires -e xor -d xor -w xor -f.");
warnln("-a and -p <PID> requires -e xor -d xor -w xor -f.");
return 1;
}