mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 17:04:22 +00:00
Standardize --target command line argument
Use whitespace instead of = like most linux command line arguments
This commit is contained in:
parent
949240069d
commit
09954c8745
@ -2470,7 +2470,7 @@ Usage: lug-helper <options>
|
|||||||
-u, --delete-user-folder Delete Star Citizen USER dir, preserve keybinds
|
-u, --delete-user-folder Delete Star Citizen USER dir, preserve keybinds
|
||||||
-s, --delete-shaders Delete Star Citizen shaders
|
-s, --delete-shaders Delete Star Citizen shaders
|
||||||
-c, --delete-dxvk-cache Delete Star Citizen dxvk cache file
|
-c, --delete-dxvk-cache Delete Star Citizen dxvk cache file
|
||||||
-t, --target=[live|ptu|eptu] Target LIVE/PTU/EPTU (default: live)
|
-t, --target [live|ptu|eptu] Target LIVE/PTU/EPTU (default: live)
|
||||||
-g, --no-gui Use terminal menus instead of a Zenity GUI
|
-g, --no-gui Use terminal menus instead of a Zenity GUI
|
||||||
-r, --get-referral Get a random LUG member's referral code
|
-r, --get-referral Get a random LUG member's referral code
|
||||||
-d, --show-directories Show all Star Citizen and Helper directories
|
-d, --show-directories Show all Star Citizen and Helper directories
|
||||||
@ -2504,18 +2504,20 @@ Usage: lug-helper <options>
|
|||||||
--delete-dxvk-cache | -c )
|
--delete-dxvk-cache | -c )
|
||||||
cargs+=("rm_dxvkcache")
|
cargs+=("rm_dxvkcache")
|
||||||
;;
|
;;
|
||||||
--target=* | -t=* )
|
--target | -t )
|
||||||
game_version="$(echo "$1" | cut -d'=' -f2)"
|
game_version="$2"
|
||||||
if [ "$game_version" = "live" ] || [ "$game_version" = "LIVE" ]; then
|
if [ "$game_version" = "live" ] || [ "$game_version" = "LIVE" ]; then
|
||||||
game_version="$live_dir"
|
game_version="$live_dir"
|
||||||
elif [ "$game_version" = "ptu" ] || [ "$game_version" = "PTU" ]; then
|
elif [ "$game_version" = "ptu" ] || [ "$game_version" = "PTU" ]; then
|
||||||
game_version="$ptu_dir"
|
game_version="$ptu_dir"
|
||||||
elif [ "$game_version" = "eptu" ] || [ "$game_version" = "ePTU" ]; then
|
elif [ "$game_version" = "eptu" ] || [ "$game_version" = "EPTU" ]; then
|
||||||
game_version="$eptu_dir"
|
game_version="$eptu_dir"
|
||||||
else
|
else
|
||||||
printf "$0: Invalid option '%s'\n" "$1"
|
printf "$0: Invalid argument '%s'\n" "$game_version"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
# Shift forward one argument
|
||||||
|
shift
|
||||||
;;
|
;;
|
||||||
--no-gui | -g )
|
--no-gui | -g )
|
||||||
# If zenity is unavailable, it has already been set to 0
|
# If zenity is unavailable, it has already been set to 0
|
||||||
|
Loading…
Reference in New Issue
Block a user