From 4b1363cc87f6d5d482449cc86775a17c2b88b8a0 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Mon, 6 Mar 2023 15:18:22 -0500 Subject: [PATCH] Cleanup CLI arguments --- retrodeck.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/retrodeck.sh b/retrodeck.sh index 1214b3c9..c6a8b5c1 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -31,12 +31,10 @@ https://retrodeck.net exit ;; --version*|-v*) - #conf_init echo "RetroDECK v$version" exit ;; --info-msg*) - #conf_init echo "RetroDECK v$version" echo "RetroDECK config file is in: $rd_conf" echo "Contents:" @@ -53,27 +51,27 @@ https://retrodeck.net else echo "Please use this command format \"--compress \"" fi - shift + exit ;; --configure*) sh /var/config/retrodeck/tools/configurator.sh - shift + exit ;; --reset-ra*) ra_init - shift # past argument with no value + shift # Continue launch after previous command is finished ;; --reset-sa*) standalones_init - shift # past argument with no value + shift # Continue launch after previous command is finished ;; --reset-tools*) tools_init - shift # past argument with no value + shift # Continue launch after previous command is finished ;; --reset-all*) rm -f "$lockfile" - shift # past argument with no value + shift # Continue launch after previous command is finished ;; -*|--*) echo "Unknown option $i"