Cleanup CLI arguments

This commit is contained in:
icenine451 2023-03-06 15:18:22 -05:00
parent ef4fb74f38
commit 4b1363cc87

View file

@ -31,12 +31,10 @@ https://retrodeck.net
exit exit
;; ;;
--version*|-v*) --version*|-v*)
#conf_init
echo "RetroDECK v$version" echo "RetroDECK v$version"
exit exit
;; ;;
--info-msg*) --info-msg*)
#conf_init
echo "RetroDECK v$version" echo "RetroDECK v$version"
echo "RetroDECK config file is in: $rd_conf" echo "RetroDECK config file is in: $rd_conf"
echo "Contents:" echo "Contents:"
@ -53,27 +51,27 @@ https://retrodeck.net
else else
echo "Please use this command format \"--compress <full path to cue/gdi/iso file>\"" echo "Please use this command format \"--compress <full path to cue/gdi/iso file>\""
fi fi
shift exit
;; ;;
--configure*) --configure*)
sh /var/config/retrodeck/tools/configurator.sh sh /var/config/retrodeck/tools/configurator.sh
shift exit
;; ;;
--reset-ra*) --reset-ra*)
ra_init ra_init
shift # past argument with no value shift # Continue launch after previous command is finished
;; ;;
--reset-sa*) --reset-sa*)
standalones_init standalones_init
shift # past argument with no value shift # Continue launch after previous command is finished
;; ;;
--reset-tools*) --reset-tools*)
tools_init tools_init
shift # past argument with no value shift # Continue launch after previous command is finished
;; ;;
--reset-all*) --reset-all*)
rm -f "$lockfile" rm -f "$lockfile"
shift # past argument with no value shift # Continue launch after previous command is finished
;; ;;
-*|--*) -*|--*)
echo "Unknown option $i" echo "Unknown option $i"