Print usage info when only -v is given

This commit is contained in:
2018-09-30 14:36:50 +08:00
parent b25b907705
commit 41199b5ebd

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;;