Skip to content

Commit b054f6b

Browse files
committed
Ensured that after update restart, passes all args
After updating, the program will pass %* (all args) through to the program, and then after bind the `--update false` flag. The arg parser will overwrite any previous flag value with the new one, which ends up in an elegant solution.
1 parent 5174dcb commit b054f6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

batch encoder.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if defined par_updated-from (
101101
call:GrayPause
102102
del "%updateFileName%"
103103
if /i "%par_silent%"=="true" (
104-
(goto) 2>nul & "%~f0" --silent --update false --ffmpegloc "%par_ffmpegloc%"
104+
(goto) 2>nul & "%~f0" %* --update false
105105
) else (
106106
(goto) 2>nul & "%~f0"
107107
)
@@ -123,7 +123,7 @@ if defined par_updated-from (
123123
call:GrayPause
124124
del "%updateFileName%"
125125
if /i "%par_silent%"=="true" (
126-
(goto) 2>nul & "batch encoder %UpdateVersion%%append%.bat" --updated-from "%~f0" --silent --update false --ffmpegloc "%par_ffmpegloc%"
126+
(goto) 2>nul & "batch encoder %UpdateVersion%%append%.bat" --updated-from "%~f0" %* --update false
127127
) else (
128128
(goto) 2>nul & "batch encoder %UpdateVersion%%append%.bat" --updated-from "%~f0"
129129
)

0 commit comments

Comments
 (0)