Add --version command line argument

This commit is contained in:
the-sane 2023-02-15 14:37:51 -05:00
parent 6decb35252
commit 568f24a15c

View File

@ -2382,6 +2382,7 @@ Usage: lug-helper <options>
-d, --show-directories Show all Star Citizen and LUG Helper directories -d, --show-directories Show all Star Citizen and LUG Helper directories
-w, --show-wiki Show the LUG Wiki -w, --show-wiki Show the LUG Wiki
-x, --reset-helper Delete saved lug-helper configs -x, --reset-helper Delete saved lug-helper configs
-v, --version Display version info and exit
" "
exit 0 exit 0
;; ;;
@ -2447,6 +2448,10 @@ Usage: lug-helper <options>
--reset-helper | -x ) --reset-helper | -x )
cargs+=("reset_helper") cargs+=("reset_helper")
;; ;;
--version | -v )
printf "LUG Helper %s\n" "$current_version"
exit 0
;;
* ) * )
printf "$0: Invalid option '%s'\n" "$1" printf "$0: Invalid option '%s'\n" "$1"
exit 0 exit 0