diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2019-05-03 23:48:28 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2019-05-03 23:56:40 +0200 |
commit | 46f84adc0c06d37c0a3bfc0fc0711213226b709d (patch) | |
tree | 61bf9f901488a34b31a15c9025103d0895f1373e /pkgs/build-support/fetchgit | |
parent | 75c98a83aba61f4fe8f051bf15b2448cb44f8d47 (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')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 2 |
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 fa4e504c908f5..c681be8e4c35a 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 |