Merge pull request #15 from gort818/master

Add short options to arguments
This commit is contained in:
the Sane 2021-01-31 09:46:31 -05:00 committed by GitHub
commit 8a27a77579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1210,44 +1210,45 @@ if [ "$#" -gt 0 ]; then
do do
# Victor_Tramp expects the spanish inquisition. # Victor_Tramp expects the spanish inquisition.
case "$1" in case "$1" in
--help|-h|-?) --help|-h)
printf "Star Citizen Linux Users Group Helper Script printf "Star Citizen Linux Users Group Helper Script
Usage: lug-helper <options> Usage: lug-helper <options>
--preflight-check Run system optimization checks -p, --preflight-check Run system optimization checks
--manage-runners Install or remove Lutris runners -m, --manage-runners Install or remove Lutris runners
--sanitize Delete Star Citizen USER folder, preserving keybinds -s, --sanitize Delete Star Citizen USER folder, preserving keybinds
--delete-shaders Delete Star Citizen shaders directory -d, --delete-shaders Delete Star Citizen shaders directory
--delete-dxvk-cache Delete Star Citizen dxvk cache file -c, --delete-dxvk-cache Delete Star Citizen dxvk cache file
--get-referral Get a random LUG member's Star Citizen referral code -g, --get-referral Get a random LUG member's Star Citizen referral code
--reset-helper Delete saved lug-helper configs -r, --reset-helper Delete saved lug-helper configs
" "
exit 0 exit 0
;; ;;
--preflight-check) --preflight-check | -p)
preflight_check preflight_check
;; ;;
--manage-runners) --manage-runners | -m)
runner_manage runner_manage
;; ;;
--sanitize) --sanitize | -s)
sanitize sanitize
;; ;;
--delete-shaders) --delete-shaders | -d)
rm_shaders rm_shaders
;; ;;
--delete-dxvk-cache) --delete-dxvk-cache | -c)
rm_dxvkcache rm_dxvkcache
;; ;;
--get-referral) --get-referral | -g)
referral_randomizer referral_randomizer
;; ;;
--reset-helper) --reset-helper | -r)
reset_helper reset_helper
;; ;;
*) *)
printf "$0: Invalid option '$1'\n" printf "$0: Invalid option '$1'\n"
printf "For more information try \x1B[32m--help\n"
exit 0 exit 0
;; ;;
esac esac