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.
This commit is contained in:
parent
75c98a83ab
commit
46f84adc0c
@ -68,7 +68,7 @@ for arg; do
|
|||||||
--leave-dotGit) leaveDotGit=true;;
|
--leave-dotGit) leaveDotGit=true;;
|
||||||
--fetch-submodules) fetchSubmodules=true;;
|
--fetch-submodules) fetchSubmodules=true;;
|
||||||
--builder) builder=true;;
|
--builder) builder=true;;
|
||||||
--help) usage; exit;;
|
-h|--help) usage; exit;;
|
||||||
*)
|
*)
|
||||||
: $((++argi))
|
: $((++argi))
|
||||||
case $argi in
|
case $argi in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user