3
0
Fork 0
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:
Alexander Schmolck 2023-04-30 12:53:47 +01:00
parent 095a5bbfef
commit eb811a6ee0

View file

@ -51,9 +51,14 @@ Options:
-d, --debug debug mode
EOF
exit 1
;;
case "${1:-}" in
-h|--help)
exit 0
;;
*)
exit 1
;;
esac
esac
done