When run without any command line arguments the scripts exists with an error
To Reproduce
Docker example:
$ ocker run --rm -e "DEBUG=0" -it \
-v $PWD/templates/utils/factory:/tmp/src \
-v $PWD/templates/utils/extension-definitions:/tmp/data \
ghcr.io/nicc777/py-animus:latest
Traceback (most recent call last):
File "/usr/local/bin/animus", line 5, in <module>
from py_animus.py_animus import main
File "/usr/local/lib/python3.10/site-packages/py_animus/py_animus.py", line 62, in <module>
def main(logger=get_logger(), command: str=sys.argv[1], cli_args: list=sys.argv[2:]):
IndexError: list index out of range
Command example:
$ venv/bin/animus
Traceback (most recent call last):
File "/media/nicc777/data/nicc777/git/Personal/GitHub/py-animus-extensions/venv/bin/animus", line 5, in <module>
from py_animus.py_animus import main
File "/media/nicc777/data/nicc777/git/Personal/GitHub/py-animus-extensions/venv/lib/python3.10/site-packages/py_animus/py_animus.py", line 62, in <module>
def main(logger=get_logger(), command: str=sys.argv[1], cli_args: list=sys.argv[2:]):
IndexError: list index out of range
Expected behavior
Print usage instructions
Development Environment (please complete the following information):
Describe the bug
When run without any command line arguments the scripts exists with an error
To Reproduce
Docker example:
Command example:
Expected behavior
Print usage instructions
Development Environment (please complete the following information):
Additional context
n/a