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 — Fix #2836: Use show_default string in prompts, not just help text by MuraveyApp · Pull Request #3290 · pallets/click

Conversation

@MuraveyApp

@MuraveyApp MuraveyApp commented Mar 29, 2026

Copy link
Copy Markdown

Summary

Fixes #2836 — When show_default is a string, the help text correctly displayed it but the interactive prompt showed the raw default value instead.

Changes

  • src/click/core.py: prompt_for_value() now passes string show_default to prompt() (was only passing booleans)
  • src/click/termui.py: _build_prompt() and prompt() accept show_default: bool | str — string values are displayed in brackets

Tests

Added 2 tests in tests/test_termui.py:

  • test_show_default_string_in_prompt — custom string appears in prompt
  • test_show_default_true_shows_actual_default_in_prompt — True still works

All existing tests pass.

Context

This issue has been open for 1+ year. Resolved with assistance from OwlMind — an autonomous AI coding agent.

Sorry, something went wrong.

Uh oh!

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

All reactions
@MuraveyApp
Fix pallets#2836: Use show_default string in prompts, not just help text
2126ee0
When show_default is a string, the help text correctly displayed it
but the interactive prompt showed the raw default value instead.

Resolved with assistance from OwlMind (https://owlmind.dev)
@davidism davidism closed this Mar 29, 2026
@kdeldycke kdeldycke added bug prompt Interactive input and confirmation invalid Spam, junk, off-topic, users learning Git in public labels Mar 30, 2026
@kdeldycke kdeldycke added this to the 8.3.3 milestone Mar 30, 2026
@kdeldycke

kdeldycke commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

This is already addressed by #3165

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 14, 2026
@kdeldycke kdeldycke removed the prompt Interactive input and confirmation label Aug 8, 2026
@kdeldycke kdeldycke removed this from the 8.3.3 milestone Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

invalid Spam, junk, off-topic, users learning Git in public

Projects

None yet

Milestone

No milestone

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.

3 participants

@MuraveyApp @kdeldycke @davidism
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.