summaryrefslogtreecommitdiff
path: root/projects/build-openssl.bat
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-08 11:04:55 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-08 11:13:19 +0100
commit4aee1f9cf5c46f56c12181f3c1bcb84466b6789c (patch)
tree28620f22c94abd0b383ff2b47cddfb0d4570c8d9 /projects/build-openssl.bat
parentb9b7ccd04ae00c542a589c60574012414fbd4fea (diff)
downloadcurl-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-openssl.bat')
-rw-r--r--projects/build-openssl.bat13
1 files changed, 8 insertions, 5 deletions
diff --git a/projects/build-openssl.bat b/projects/build-openssl.bat
index 409c5da38..e2bcf751e 100644
--- a/projects/build-openssl.bat
+++ b/projects/build-openssl.bat
@@ -27,12 +27,9 @@ rem ***************************************************************************
setlocal
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
@@ -81,6 +78,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%