Skip to content

Commit 12c5bf5

Browse files
Moved CLI argument count code (0 & >2) to a more logical section
1 parent 020bb0c commit 12c5bf5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ssl_config.bat

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ rem Count the number of arguments.
7272
set $argumentCount=0
7373
for %%x in (%*) do Set /A $argumentCount+=1
7474

75-
76-
rem ----------------
77-
rem Get CLI arg(s)
78-
rem ----------------
79-
80-
rem Set the variables.
81-
set $configPath=
82-
set $restoreFlag=false
83-
8475
rem Check if no arguments were given.
8576
if !$argumentCount! equ 0 (
8677
call :failure "CLI Argument Error" "ssl_conf.bat" "No ini file was given." "Please pass in the path to your config.ini file."
@@ -91,6 +82,15 @@ if !$argumentCount! gtr 2 (
9182
call :failure "CLI Argument Error" "ssl_conf.bat" "More than two arguments were given." "Please only pass in a maximum of 2 arguments, your ini file and the optional restore command."
9283
)
9384

85+
86+
rem ----------------
87+
rem Get CLI arg(s)
88+
rem ----------------
89+
90+
rem Set the variables.
91+
set $configPath=
92+
set $restoreFlag=false
93+
9494
rem Check if two arguments were given.
9595
if !$argumentCount! equ 2 (
9696
rem Check for first combination.

0 commit comments

Comments
 (0)