mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 17:34:23 +00:00
Add short options to arguments
This commit is contained in:
parent
978e0adc92
commit
28edb3393e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user