Commit eb811a6e authored by Alexander Schmolck's avatar Alexander Schmolck
Browse files

nix-info: fix nix-info --help to exit 0

Previously, --help and -h were treated like an invalid argument.
parent 095a5bbf
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -51,9 +51,14 @@ Options:
 -d, --debug      debug mode

EOF
            case "${1:-}" in
                -h|--help)
                    exit 0
                    ;;
                *)
                    exit 1
                    ;;

            esac
    esac
done