From c6d13e679f81c61e638deb2370640fd8250dc51a Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 8 Feb 2023 11:04:00 -0500 Subject: [PATCH] make menu options in invoke.bat the same as options in invoke.sh - This makes the launcher options menu on Windows look and act the same as the Linux/Mac launcher, which previously was lacking the command-line help option and didn't list item (6) as an option. --- installer/templates/invoke.bat.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/installer/templates/invoke.bat.in b/installer/templates/invoke.bat.in index 9fd05ca37e..f1a5ca5ef2 100644 --- a/installer/templates/invoke.bat.in +++ b/installer/templates/invoke.bat.in @@ -13,7 +13,8 @@ echo 3. run textual inversion training echo 4. merge models (diffusers type only) echo 5. re-run the configure script to download new models echo 6. open the developer console -set /P restore="Please enter 1, 2, 3, 4 or 5: [2] " +echo 7. command-line help +set /P restore="Please enter 1, 2, 3, 4, 5, 6 or 7: [2] " if not defined restore set restore=2 IF /I "%restore%" == "1" ( echo Starting the InvokeAI command-line.. @@ -42,6 +43,11 @@ IF /I "%restore%" == "1" ( echo ************************* echo *** Type `exit` to quit this shell and deactivate the Python virtual environment *** call cmd /k +) ELSE IF /I "%restore%" == "7" ( + echo Displaying command line help... + python .venv\Scripts\invokeai.exe --help %* + pause + exit /b ) ELSE ( echo Invalid selection pause