mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat: Install script help
Closes https://github.com/espressif/esp-idf/issues/11231
This commit is contained in:
+10
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user