Skip to content

Empty default value in help output - #1970

Merged
davidism merged 2 commits into
pallets:8.0.xfrom
pbeza:empty-default-value-in-help-output
Jul 4, 2021
Merged

Empty default value in help output#1970
davidism merged 2 commits into
pallets:8.0.xfrom
pbeza:empty-default-value-in-help-output

Conversation

@pbeza

@pbeza pbeza commented Jun 22, 2021

Copy link
Copy Markdown

This PR solves the problem with printing empty default values in --help output when @click.option has multiple=True set.

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

@pbeza
pbeza changed the base branch from main to 8.0.x June 22, 2021 14:04
Comment thread src/click/core.py Outdated
@pbeza
pbeza force-pushed the empty-default-value-in-help-output branch from 262d1c9 to f3f7706 Compare June 22, 2021 14:44
@davidism davidism added this to the 8.0.2 milestone Jul 4, 2021
@davidism
davidism force-pushed the empty-default-value-in-help-output branch from f3f7706 to 1807058 Compare July 4, 2021 13:43
@davidism
davidism merged commit 2184ab1 into pallets:8.0.x Jul 4, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty default value in --help output for option with multiple=True

2 participants