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

show the passed flag that failed to parse when options fail to parse #4246

Closed
baroquebobcat opened this issue Feb 10, 2017 · 2 comments
Closed

Comments

@baroquebobcat
Copy link
Contributor

When an unrecognized scoped option is passed right now, the options parser complains with message like the following

./pants --foo-bar-baz --foo-bar-qux tasktask targettarget
Exception message: Unrecognized command line flags on scope 'foo.bar': --baz, --qux

It would be clearer to users if we could collect the passed flag and present it in the error.

@kvignos
Copy link

kvignos commented Feb 10, 2017

+1

@Eric-Arellano
Copy link
Contributor

This was improved by @cosmicexplorer last year. We now show suggestions for what you were likely trying to type. See #9795 for another enhancement.

asherf added a commit to asherf/pants that referenced this issue Sep 11, 2021
https://python-poetry.org/history/#118---2021-08-19

Fixed an error with repository prioritization when specifying secondary repositories. (pantsbuild#4241)
Fixed the detection of the system environment when the setting virtualenvs.create is deactivated. (pantsbuild#4330, pantsbuild#4407)
Fixed the evaluation of relative path dependencies. (pantsbuild#4246)
Fixed environment detection for Python 3.10 environments. (pantsbuild#4387)
Fixed an error in the evaluation of in/not in markers (python-poetry/poetry-core#189)
stuhood pushed a commit that referenced this issue Sep 13, 2021
https://python-poetry.org/history/#118---2021-08-19

Fixed an error with repository prioritization when specifying secondary repositories. (#4241)
Fixed the detection of the system environment when the setting virtualenvs.create is deactivated. (#4330, #4407)
Fixed the evaluation of relative path dependencies. (#4246)
Fixed environment detection for Python 3.10 environments. (#4387)
Fixed an error in the evaluation of in/not in markers (python-poetry/poetry-core#189)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants