Different exit codes for -e and -m flags? #1

Closed
opened 2026-03-21 13:28:26 +01:00 by Navi · 2 comments

Currently, both flags cause each of their non-zero exit code conditions to output the same exit code (20).

Could we perhaps differentiate these, to make usage in scripts on the user-side easier (not having to parse json to see which warning to output)?

Currently, both flags cause each of their non-zero exit code conditions to output the same exit code (20). Could we perhaps differentiate these, to make usage in scripts on the user-side easier (not having to parse json to see which warning to output)?
Author

Strictly speaking, this wouldn't be needed if one only needs either state in a script (empty package list + exit code 20? mirror issue. otherwise, packages in queue.)

But if one wants to differentiate between these, having different codes would help a lot.

Strictly speaking, this wouldn't be needed if one only needs either state in a script (empty package list + exit code 20? mirror issue. otherwise, packages in queue.) But if one wants to differentiate between these, having different codes would help a lot.
Author

Nevermind. One can just not set the -e flag and check the output... Not needed at all for scripting. Closing my issue again, sorry lol

Nevermind. One can just not set the -e flag and check the output... Not needed at all for scripting. Closing my issue again, sorry lol
Navi closed this issue 2026-03-21 17:02:52 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ALHP/ALHP.utils#1