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. --- buildconf.bat | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'buildconf.bat') 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 ) -- cgit v1.2.3