Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human readable name not used in parameter error messages #855

Closed
gar1t opened this issue Sep 26, 2017 · 2 comments
Closed

Human readable name not used in parameter error messages #855

gar1t opened this issue Sep 26, 2017 · 2 comments

Comments

@gar1t
Copy link

gar1t commented Sep 26, 2017

I'm getting error messages that look like this:

Usage: guild info [OPTIONS] PACKAGE
Try "guild info --help" for help.

Error: Missing argument "package".

IMO the last line should read Missing argument PACKAGES - "packages" is not reflected in the usage.

I believe the issue is here (and similar patterns in exceptions.py):

https://github.com/pallets/click/blob/master/click/exceptions.py#L121

where self.param.opts short-circuits the use of the human readable name, which would use metavar as expected.

@cdunklau
Copy link

This looks like a dupe of #598

@LokiHokie
Copy link
Contributor

Fixed #709

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants