Generic name when running tryceratops as a module
rodrigogiraoserrao opened this issue · comments
I installed tryceratops
and tryceratops.exe
got installed into a folder that is not on my PATH variable.
What I usually do, to run things like black
, is python -m black
, and the same thing works for tryceratops
, naturally.
However, some of the command-line options give generic info back because __name__
is now "__main__"
:
> python -m tryceratops --version
__main__.py, version 0.2.3
and
> python -m tryceratops --help
Usage: __main__.py [OPTIONS] [DIR]...
# omitted
Notice both appearances of __main__.py
where I expected tryceratops
or tryceratops.py
. In my opinion the __main__.py
doesn't look good, in a stylistic sense.
Interesting... I couldn't simulate. What's your OS?
Windows 10, 64 bit, Python 3.9, tryceratops
installed for the user, not globally.
Update: seems like other tools also have this quirk, e.g. black
shows the same thing.
Interesting, I'll take a look
It seems easy to fix. Saving for later: pallets/click#1399
Done, next release it will be fixed