Skip to content

Exit without error on help option

SHORT DESCRIPTION (required)

When we execute bpm, bpm -h or bpm --help the exit code should be always 0 instead of current 1.

Exiting with 0 is desired to avoid any script using the Self Installer to abort the execution due to the current exit code 1.

DETAILED STEPS TO REPRODUCE (required)

Executing the bash command:

$ bpm --help

USAGE: bpm [install, -h, --help, -v, --version]

Checking the exit status:

$ echo $?
1

EXPECTED BEHAVIUOR (required)

Executing the bash command:

$ bpm --help

USAGE: bpm [install, -h, --help, -v, --version]

Checking the exit status:

$ echo $?
0

It must return 0 as the exit code.

RELATED TO (optional)

N/A

DEPENDS ON (optional)

N/A

LINKS (optional)

N/A