Skip to content

Return exit code 0 after displaying help text with -h - #429

Merged
tmayerguerr merged 1 commit into
groops-devs:mainfrom
AndreHauschild:exitSuccessOnHelp
Jun 7, 2026
Merged

Return exit code 0 after displaying help text with -h#429
tmayerguerr merged 1 commit into
groops-devs:mainfrom
AndreHauschild:exitSuccessOnHelp

Conversation

@AndreHauschild

Copy link
Copy Markdown
Contributor

When calling the application with -h to display the help text the return code was EXIT_FAILURE, even though this the intended use case and no error has occurred. The return code for this particular case is now changed to EXIT_SUCCESS.

It is not a big deal, but confused me a little when I was using groops -h for testing where I needed the application to do nothing else but terminate itself successfully.

@tmayerguerr

Copy link
Copy Markdown
Member

You're right, that was bothering me too. I've tweaked it a bit, so now there aren't any error messages in parallel mode either. I've probably just introduced a new bug...
Best regards
Torsten

@tmayerguerr
tmayerguerr merged commit 8554853 into groops-devs:main Jun 7, 2026
@AndreHauschild
AndreHauschild deleted the exitSuccessOnHelp branch June 8, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants