From 4aee1f9cf5c46f56c12181f3c1bcb84466b6789c Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 8 Aug 2015 11:04:55 +0100 Subject: 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. --- projects/build-wolfssl.bat | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'projects/build-wolfssl.bat') 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 -- cgit v1.2.3