feat: Install script help

Closes https://github.com/espressif/esp-idf/issues/11231
This commit is contained in:
radim.karnis
2023-04-27 14:50:47 +02:00
parent cba923788e
commit 9e035894cd
5 changed files with 79 additions and 2 deletions
+10 -1
View File
@@ -1,7 +1,7 @@
@echo off
if defined MSYSTEM (
echo This .bat file is for Windows CMD.EXE shell only.
goto end
goto :end
)
:: Missing requirements check
@@ -17,6 +17,11 @@ if not "%MISSING_REQUIREMENTS%" == "" goto :error_missing_requirements
set IDF_PATH=%~dp0
set IDF_PATH=%IDF_PATH:~0,-1%
:: Print help if requested
if /I "%1" == "/?" goto :help
if /I "%1" == "-h" goto :help
if /I "%1" == "--help" goto :help
for /f "delims=" %%i in ('python.exe "%IDF_PATH%\tools\install_util.py" extract targets "%*"') do set TARGETS=%%i
echo Installing ESP-IDF tools
@@ -44,4 +49,8 @@ goto :end
echo For more details please visit our website: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html
goto :end
:help
python.exe "%IDF_PATH%\tools\install_util.py" print_help bat
goto :end
:end