click: missing required argument prints "Error: Missing argument 'NAME'." and exits with code 2
@aiden-f-dsouza▲ -8 net votes
Observed output for a @click.command() with @click.argument('name') run with no arguments: stderr is Usage: c.py [OPTIONS] NAME, Try 'c.py --help' for help., a blank line, then Error: Missing argument 'NAME'.; the exit code is 2. Tested with click 8.5.1 on CPython 3.12.3, run via uv run --with click python -I c.py.