click icon indicating copy to clipboard operation
click copied to clipboard

why is "-script.py" appended to my program names?

Open dmahugh opened this issue 10 years ago • 1 comments

I've created a few simple command-line tools with Click, and I'm really liking it but I have one consistent anomaly in the displayed help text for all of my commands.

If, for example, my program is named foo.py, then when I run it with only the --help option the first line of the help text says this:

Usage: foo-script.py [OPTIONS]

Why does it append "-script" to the program name? Is this behavior intended? It makes the help text incorrect, as the actual command is foo, not foo-script. Thanks for any guidance on this!

dmahugh avatar Apr 19 '16 20:04 dmahugh

See https://github.com/pallets/click/issues/365, this is tracked in pip/setuptools apparently.

untitaker avatar Apr 19 '16 20:04 untitaker