GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — When prompting, use `show_default` as the default if its a string by thejcannon · Pull Request #2837 · pallets/click Conversation
|
|
oh duh, this changes the default 🤦 . Gotta go deeper... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if type is not None and show_choices and isinstance(type, Choice): | ||
| prompt += f" ({', '.join(map(str, type.choices))})" | ||
| if isinstance(show_default, str): | ||
| default = f"({show_default})" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This should be `default = f"{prompt} ({show_default})". Also add this to the test.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please rebase on main to resolve the changes.rst. With merge after #3030. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A PR is ready to be merged at: #3165 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR has been superseded by #3328. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
show_default as a string isn't used in prompts as the default shown
There was an error while loading. Please reload this page.