From 46f84adc0c06d37c0a3bfc0fc0711213226b709d Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Fri, 3 May 2019 23:48:28 +0200 Subject: 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. --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git') 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 -- cgit v1.2.3