click
click copied to clipboard
documentation about entry points is unclear
First, thanks for making an awesome tool! Click made knocking together a CLI for my masters work trivial.
These documentation questions are an effort to clarify some of the language in the setuptools and shell completion sections, to reduce friction for new users like me.
- Though Shell Completion depends on users installing through a setuptools entrypoint, and refers to the Setuptools Integration docs, the terminology is not aligned between the two sets of examples. Scripts in Packages refers to the package
yourpackage
, a subpackagescripts
, a moduleyourscript
, and a click commandcli
. Shell Completion refers toPROG_NAME
, "the executable name in uppercase...". DoesPROG_NAME
map to the the name of the packageyourscript
, the entrypointyourscript
, the commandcli
, or something else entirely? Clarification of exactly what the "executable name" is here would be very helpful. - In the Scripts in Packages example, it is unclear that the
console_scripts
key is a "default" value, and not something package-specific. For users who have worked with entrypoints in setup.py before, this is probably obvious, but for newcomers there's no visual way to differentiate "standard" values from semantically meaningful ones in this example. A single-sentence note clarifying would help.
- Python version: 3.8
- Click version: 8
Happy to review a PR.