mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Cleanup CLI arguments
This commit is contained in:
parent
ef4fb74f38
commit
4b1363cc87
14
retrodeck.sh
14
retrodeck.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue