Print usage info when only -v is given

This commit is contained in:
Julian Ospald 2018-09-30 14:36:50 +08:00
parent b25b907705
commit 41199b5ebd
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 5 additions and 1 deletions

6
ghcup
View File

@ -741,7 +741,11 @@ while [ $# -gt 0 ] ; do
case $1 in case $1 in
-v|--verbose) -v|--verbose)
VERBOSE=true VERBOSE=true
shift 1;; shift 1
if [ $# -lt 1 ] ; then
usage
fi
;;
-V|--version) -V|--version)
printf "%s" "${VERSION}" printf "%s" "${VERSION}"
exit 0;; exit 0;;