Skip to content

Commit 3ac39ae

Browse files
committed
Fixed --debug detector and altered --update force flag
Altered update flag - if set to force, does not ask if user wants to update (seemed pointless)
1 parent b75b83c commit 3ac39ae

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

batch encoder.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ set "textgreen="
1313
set "textred="
1414
set "formatend="
1515

16-
:ArgParser
17-
set allargs=%*
18-
rem If debug included in args
19-
if not "%allargs%"=="%allargs:--debug=%" (set "par_debug=true")
2016

17+
for %%G in (%*) DO (if "%%G"=="--debug" (set "par_debug=true" & goto ArgParser))
18+
19+
:ArgParser
2120
set "FLAG=0"
2221
for %%G in (%*) DO (
2322
set ARG=%%G
@@ -72,6 +71,7 @@ if defined par_updated-from (
7271
if /i "%par_update%"=="force" (goto AutoUpdate)
7372
echo Error: --update argument invalid ^(should be ^(true^|false^|force^)^). & exit /b 1
7473
)
74+
if /i "%par_update%"=="force" (goto AutoUpdate)
7575
set /p "updateconfirmation=%icongray% ^ %formatend% Would you like to check for an update? %textgray%[Y/N]%formatend%: "
7676
if /i "%updateconfirmation%"=="n" (goto FFMPEGLocation)
7777
if /i "%updateconfirmation%"=="y" (goto AutoUpdate)

0 commit comments

Comments
 (0)