InvokeAI/invokeai/frontend/cli/app_arg_parser.py
psychedelicious 60492500db chore: ruff
2024-03-19 09:24:28 +11:00

13 lines
643 B
Python

from argparse import ArgumentParser, RawTextHelpFormatter
from invokeai.version import __version__
root_help = r"""Sets a root directory for the app. If omitted, the app will search for the root directory in the following order:
- The `$INVOKEAI_ROOT` environment variable
- The currently active virtual environment's parent directory
- `$HOME/invokeai`"""
app_arg_parser = ArgumentParser(description="Invoke Studio", formatter_class=RawTextHelpFormatter)
app_arg_parser.add_argument("--root", type=str, help=root_help)
app_arg_parser.add_argument("--version", action="version", version=__version__, help="Displays the version and exits.")