add cmdline help

This commit is contained in:
Vladimir Mandic
2023-03-06 18:10:43 -05:00
parent 04f28df87b
commit d0c00e6edf
2 changed files with 20 additions and 6 deletions
+12 -6
View File
@@ -51,10 +51,6 @@ Start in default mode with optimizations enabled
- Python: 3.10.6 Torch: 2.0.0.dev20230224+cu118 CUDA: 11.8 cuDNN: 8700 GPU: NVIDIA GeForce RTX 3060 Arch: (8, 6)
Launching Web UI
> ./automatic.sh public
Start with listen on public IP with authentication enabled
> ./automatic.sh clean
Start with all optimizations disabled
@@ -68,10 +64,20 @@ Installs and updates to latest supported version:
- Extensions
- Sub-modules
Does not update main repository
> ./automatic.sh update
Updates the main repository to the latest version
Recommended to run `install` after `update`
Updates the main repository to the latest version
Recommended to run `install` after `update` to update dependencies as they may have changed
> ./automatic.sh help
Print all available options
> ./automatic.sh public
Start with listen on public IP with authentication enabled
<br>
+8
View File
@@ -43,6 +43,9 @@ for i in "$@"; do
clean)
MODE=clean
;;
help)
MODE=help
;;
*)
CMD="$CMD $i"
;;
@@ -94,6 +97,11 @@ if [ "$MODE" == update ]; then
exit 0
fi
if [ "$MODE" == help ]; then
"$PYTHON" webui.py --help
exit 0
fi
if [ "$MODE" == install ]; then
"$PYTHON" -m pip --version