Skip to content

fix: assign success status when displaying help usage via -h or -help - #25

Open
KristijanZic wants to merge 1 commit into
objective-see:masterfrom
KristijanZic:fix-help-exit-code
Open

fix: assign success status when displaying help usage via -h or -help#25
KristijanZic wants to merge 1 commit into
objective-see:masterfrom
KristijanZic:fix-help-exit-code

Conversation

@KristijanZic

Copy link
Copy Markdown

Added success status assignment before exiting help usage when invoked via -h or --help.

In environments with set -e -o pipefail returning a non-zero exit code like -1 or (255 when -1 gets wrapped around to the maximum unsigned 8-bit value) results in help tests invocations failing.

Added success status assignment before exiting help usage when invoked via -h or --help.

In environments with set -e -o pipefail returning a non-zero exit code like -1 or (255 when -1 gets wrapped around to the maximum unsigned 8-bit value) results in help tests invocations failing.
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.

1 participant