------- Comment on attachment From [email protected] 2016-09-06 08:39 EDT-------
[PATCH] ziomon: Use exit code 0 for --version and --help Besides of this also unify the exit codes for help in case of wrong number of parameters: # /usr/sbin/ziomon_util Usage: ziomon_util [-h] [-v] [-V] [-i n] [-s n] [-Q <msgq_path> ... # echo $? 255 # /usr/sbin/ziomon_mgr Usage: ziomon_util [-h] [-v] [-V] [-i n] [-s n] [-Q <msgq_path> ... # echo $? 0 With this patch we use exit code 1 (EXIT_FAILURE) in this case: # ./ziomon_util Usage: ziomon_util [-h] [-v] [-V] [-i n] [-s n] [-Q <msgq_path> ... # echo $? 1 Signed-off-by: Michael Holzheu <[email protected]> ** Attachment added: "0001-ziomon-Use-exit-code-0-for-version-and-help.patch" https://bugs.launchpad.net/bugs/1616596/+attachment/4741403/+files/0001-ziomon-Use-exit-code-0-for-version-and-help.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616596 Title: ziomon_util: Unexpected return code To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1616596/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
