Skip to content

🐛 fix(run): print only the error for a missing option value - #3749

Merged
gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:rework/pr-3700
Nov 20, 2026
Merged

gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:rework/pr-3700

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

A missing option value printed a partial usage line that included the deprecated --wheel option and omitted most of the command, including the destination. The error now names the missing value without that misleading usage line. Fixes #3585.

The early parser checks option values before the full parser runs, but it knows only a subset of virtualenv's options. It now suppresses its own usage text for these errors while keeping the specific argument error and exit behavior.

Contribution by Pratik-Kumar-Dhakar.

@gaborbernat
gaborbernat marked this pull request as ready for review November 20, 2026 17:33
@gaborbernat
gaborbernat merged commit b90fbbf into pypa:main Nov 20, 2026
128 of 155 checks passed
@gaborbernat
gaborbernat deleted the rework/pr-3700 branch November 23, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A missing option value prints a usage line that lists the deprecated --wheel and leaves out most options

1 participant