diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-08-08 11:04:55 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-08-08 11:13:19 +0100 |
commit | 4aee1f9cf5c46f56c12181f3c1bcb84466b6789c (patch) | |
tree | 28620f22c94abd0b383ff2b47cddfb0d4570c8d9 /buildconf.bat | |
parent | b9b7ccd04ae00c542a589c60574012414fbd4fea (diff) | |
download | curl-4aee1f9cf5c46f56c12181f3c1bcb84466b6789c.tar.gz |
scripts: Allow -help to be specified in any argument
Allow the -help command line argument to be specified in any argument
and not just as the first.
Diffstat (limited to 'buildconf.bat')
-rw-r--r-- | buildconf.bat | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/buildconf.bat b/buildconf.bat index 694737a94..b5f68d6d7 100644 --- a/buildconf.bat +++ b/buildconf.bat @@ -30,11 +30,6 @@ rem This file is not included or required for curl's release archives or daily rem snapshot archives. :begin - rem Display the help - if /i "%~1" == "-?" goto syntax - if /i "%~1" == "-h" goto syntax - if /i "%~1" == "-help" goto syntax - rem Switch to this batch file's directory cd /d "%~0\.." 1>NUL 2>&1 @@ -50,6 +45,12 @@ rem snapshot archives. if /i "%~1" == "-clean" ( set MODE=CLEAN + ) else if /i "%~1" == "-?" ( + goto syntax + ) else if /i "%~1" == "-h" ( + goto syntax + ) else if /i "%~1" == "-help" ( + goto syntax ) else ( goto unknown ) |