summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/fetchgit/nix-prefetch-git
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2019-05-03 23:48:28 +0200
committerAndreas Rammhold <andreas@rammhold.de>2019-05-03 23:56:40 +0200
commit46f84adc0c06d37c0a3bfc0fc0711213226b709d (patch)
tree61bf9f901488a34b31a15c9025103d0895f1373e /pkgs/build-support/fetchgit/nix-prefetch-git
parent75c98a83aba61f4fe8f051bf15b2448cb44f8d47 (diff)
nix-prefetch-git: add -h as shortcut for --help to improve quality of life
Especially as a new user it is a much better experience to receive a proper help response to `-h`. Currently passing `-h` will cause some runtime error with the `git remote` error help being shown. Not very helpful. It doesn't hurt to be a bit more user friendly in this case.
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git
index fa4e504c908f..c681be8e4c35 100755
--- a/pkgs/build-support/fetchgit/nix-prefetch-git
+++ b/pkgs/build-support/fetchgit/nix-prefetch-git
@@ -68,7 +68,7 @@ for arg; do
--leave-dotGit) leaveDotGit=true;;
--fetch-submodules) fetchSubmodules=true;;
--builder) builder=true;;
- --help) usage; exit;;
+ -h|--help) usage; exit;;
*)
: $((++argi))
case $argi in