Anybadge can no longer be called as a module
jannismain opened this issue · comments
Jannis Mainczyk commented
Describe the bug
I was using anybadge like this:
$ python -m anybadge ...
Until 1.9.0, this was supported. However, since 1.11.1, this no longer works.
To Reproduce
$ python -m anybadge
../bin/python: No module named anybadge.__main__; 'anybadge' is a package and cannot be directly executed
Expected behavior
The anybadge cli should be executed just as when anybadge
is called directly.
$ anybadge
usage: anybadge [-h] [-l LABEL] -v VALUE [-m VALUE_FORMAT] [-c COLOR] [-p PREFIX] [-s SUFFIX] [-d PADDING] [-lp LABEL_PADDING] [-vp VALUE_PADDING] [-n FONT]
[-z FONT_SIZE] [-t TEMPLATE] [-st STYLE] [-u] [-f FILE] [-o] [-r TEXT_COLOR] [-e]
...
anybadge: error: the following arguments are required: -v/--value
** Python version: (please complete the following information)**
- 3.10.2
** Operating system: (please complete the following information)**
- Mac OS