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 /projects/build-wolfssl.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 'projects/build-wolfssl.bat')
-rw-r--r-- | projects/build-wolfssl.bat | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/projects/build-wolfssl.bat b/projects/build-wolfssl.bat index 53188e853..ad755e937 100644 --- a/projects/build-wolfssl.bat +++ b/projects/build-wolfssl.bat @@ -30,11 +30,8 @@ rem *************************************************************************** set VC_VER= set BUILD_PLATFORM= - rem Display the help + rem Ensure we have the required arguments if /i "%~1" == "" goto syntax - if /i "%~1" == "-?" goto syntax - if /i "%~1" == "-h" goto syntax - if /i "%~1" == "-help" goto syntax :parseArgs if "%~1" == "" goto prerequisites @@ -67,6 +64,12 @@ rem *************************************************************************** set BUILD_CONFIG=debug ) else if /i "%~1" == "release" ( set BUILD_CONFIG=release + ) else if /i "%~1" == "-?" ( + goto syntax + ) else if /i "%~1" == "-h" ( + goto syntax + ) else if /i "%~1" == "-help" ( + goto syntax ) else ( if not defined START_DIR ( set START_DIR=%~1 |