From 568f24a15c6cb750cdb376b108fdd461ad51f9ea Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Wed, 15 Feb 2023 14:37:51 -0500 Subject: [PATCH] Add --version command line argument --- lug-helper.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index 5bab015..4b8e7e8 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2382,6 +2382,7 @@ Usage: lug-helper -d, --show-directories Show all Star Citizen and LUG Helper directories -w, --show-wiki Show the LUG Wiki -x, --reset-helper Delete saved lug-helper configs + -v, --version Display version info and exit " exit 0 ;; @@ -2447,6 +2448,10 @@ Usage: lug-helper --reset-helper | -x ) cargs+=("reset_helper") ;; + --version | -v ) + printf "LUG Helper %s\n" "$current_version" + exit 0 + ;; * ) printf "$0: Invalid option '%s'\n" "$1" exit 0