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/checksrc.bat | |
parent | b9b7ccd04ae00c542a589c60574012414fbd4fea (diff) |
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/checksrc.bat')
-rw-r--r-- | projects/checksrc.bat | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/projects/checksrc.bat b/projects/checksrc.bat index 8a2f63af2..37dc808a9 100644 --- a/projects/checksrc.bat +++ b/projects/checksrc.bat @@ -26,10 +26,14 @@ rem *************************************************************************** if not "%OS%" == "Windows_NT" goto nodos setlocal - rem Display the help - if /i "%~1" == "-?" goto syntax - if /i "%~1" == "-h" goto syntax - if /i "%~1" == "-help" goto syntax +:parseArgs + if /i "%~1" == "-?" ( + goto syntax + ) else if /i "%~1" == "-h" ( + goto syntax + ) else if /i "%~1" == "-help" ( + goto syntax + ) :prerequisites rem Check we have Perl installed |