diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-08-05 06:41:40 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-08-05 06:47:47 +0100 |
commit | 33de75ed6334cd6d225cf9f399c07d710d6349e6 (patch) | |
tree | c434db6936c9dacedd6ab6fb97d328a821624583 | |
parent | df5965ebf4573ad18ba400272a7d74a2366068e9 (diff) | |
download | curl-33de75ed6334cd6d225cf9f399c07d710d6349e6.tar.gz |
buildconf.bat: Added display of usage text with -help
-rw-r--r-- | buildconf.bat | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/buildconf.bat b/buildconf.bat index e54ce743c..fe4b75d53 100644 --- a/buildconf.bat +++ b/buildconf.bat @@ -30,6 +30,11 @@ 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 + if not exist GIT-INFO goto nogitinfo :start @@ -56,6 +61,12 @@ cd .. :end_c_ares goto success +:syntax + rem Display the help + echo. + echo Usage: buildconf + goto error + :nogitinfo echo. echo ERROR: This file shall only be used with a curl git tree checkout. |