Closed asterkin closed 2 years ago
It seems to be that with dynacli executable the __version__
is ignored, silently.
It took me a lot of time to find this out.
$ python3 _cli.py --version
_cli.py - v1.0.5
$ dynacli --version
usage: dynacli [-h] {init} ...
dynacli: error: unrecognized arguments: --version
The dynacli entrypoint is created by flit according to respective PEP:
#!/usr/bin/python3.9
# -*- coding: utf-8 -*-
import re
import sys
from dynacli.bootstrap._cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
Describe the bug A clear and concise description of what the bug is. Invoking dynacli --version results in error message
To Reproduce Steps to reproduce the behavior: