forked from mirrors/nixpkgs
nix-info: fix nix-info --help to exit 0
Previously, --help and -h were treated like an invalid argument.
This commit is contained in:
parent
095a5bbfef
commit
eb811a6ee0
|
@ -51,9 +51,14 @@ Options:
|
|||
-d, --debug debug mode
|
||||
|
||||
EOF
|
||||
exit 1
|
||||
;;
|
||||
|
||||
case "${1:-}" in
|
||||
-h|--help)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue