GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Show default string in prompt by kdeldycke · Pull Request #3328 · pallets/click

Conversation

@kdeldycke

@kdeldycke kdeldycke commented Apr 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

This PR build-up on #2837 (original contributor deleted its fork) and #3165 (revival based on AI slop) to use the value of show_default in prompt if the latter is a string. Which aligns the display with the help screen.

Also adds a lot of unit tests for edge-cases for default prompt displaying.

This closes #2836.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kdeldycke kdeldycke added bug prompt Interactive input and confirmation labels Apr 9, 2026
@kdeldycke kdeldycke added this to the 8.3.3 milestone Apr 9, 2026
This was referenced Apr 9, 2026
When prompting, use show_default as the default if its a string #2837
Closed
Support show_default string in prompts #3165
Closed
@kdeldycke kdeldycke linked an issue Apr 9, 2026 that may be closed by this pull request
show_default as a string isn't used in prompts as the default shown #2836
Closed
@kdeldycke
kdeldycke force-pushed the show-default-string-in-prompt branch from ea636eb to 06e47c7 Compare April 9, 2026 09:48
@kdeldycke

kdeldycke commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

This PR is ready to be merge in stable.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kdeldycke kdeldycke mentioned this pull request Apr 9, 2026
show_default as a string isn't used in prompts as the default shown #2836
Closed
@kdeldycke
kdeldycke requested review from Rowlando13 and davidism April 13, 2026 06:20
davidism
davidism approved these changes Apr 13, 2026
View reviewed changes
thejcannon and others added 2 commits April 13, 2026 20:28
@thejcannon @kdeldycke
Support show_default string in prompts
607316f
When `show_default` is set to a string on an option with `prompt=True`,
use that string in the prompt instead of the actual default value,
matching the behavior of the help text.

Squashed from pallets#2837 by Josh Cannon (@thejcannon).
@kdeldycke
Test show_default set as string and its display in prompt
39413d9
@kdeldycke
kdeldycke force-pushed the show-default-string-in-prompt branch from 06e47c7 to 39413d9 Compare April 13, 2026 18:30
@Rowlando13
Merge branch 'stable' into show-default-string-in-prompt
8c452e0
@Rowlando13
Rowlando13 merged commit 76552ff into pallets:stable Apr 16, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@kdeldycke
kdeldycke deleted the show-default-string-in-prompt branch April 16, 2026 08:29
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@davidism davidism davidism approved these changes
@Rowlando13 Rowlando13 Awaiting requested review from Rowlando13

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

prompt Interactive input and confirmation

Projects

None yet

Milestone

8.3.3

Development

Successfully merging this pull request may close these issues.

show_default as a string isn't used in prompts as the default shown

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@kdeldycke @davidism @Rowlando13 @thejcannon
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.