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 — Add help parameter to arguments by yurishevtsov · Pull Request #3473 · pallets/click

Conversation

@yurishevtsov

@yurishevtsov yurishevtsov commented May 19, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Adds a help parameter to click.argument() and an Arguments section on --help when argument help is set. Commands without argument help are unchanged.

Implementation follows options: Argument.get_help_record() returns the metavar and help text for the help formatter (the base Parameter class returns None, so arguments never appeared in help tables before).

Argument.to_info_dict() now includes help, matching Option, so parameter metadata stays consistent for doc tools; this is not required for CLI help output.

Deprecated arguments without explicit help show a deprecation-only row in Arguments, matching deprecated options.

fixes #2983

Sorry, something went wrong.

Uh oh!

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

All reactions
@yurishevtsov
yurishevtsov force-pushed the add-help-kwarg-to-arg-params branch 4 times, most recently from 73e3c13 to b145f91 Compare May 19, 2026 18:55
@Rowlando13
Rowlando13 requested review from AndreasBackx and kdeldycke May 19, 2026 19:22
@Rowlando13 Rowlando13 added the help output Help text formatting, layout, and --help rendering label May 19, 2026
@Rowlando13 Rowlando13 modified the milestones: 9.0.0, 8.5.0 May 19, 2026
@yurishevtsov
yurishevtsov force-pushed the add-help-kwarg-to-arg-params branch from b145f91 to 71240f8 Compare May 19, 2026 20:02
@kdeldycke

kdeldycke commented May 23, 2026

Copy link
Copy Markdown
Collaborator

That feature exists in Cloup since v0.1.40: https://github.com/janluke/cloup/releases/tag/v0.14.0 . So additional review from @janluke would be great! :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke
kdeldycke requested a review from janluke May 23, 2026 12:42
@kdeldycke kdeldycke added the f:parameters label May 23, 2026
kdeldycke
kdeldycke requested changes May 23, 2026
View reviewed changes

@kdeldycke kdeldycke left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good PR that mirrors the way help is managed on Option.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread CHANGES.rst Resolved

Uh oh!

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

Comment thread src/click/core.py Resolved

Uh oh!

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

Comment thread src/click/core.py Resolved

Uh oh!

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

Comment thread src/click/core.py Resolved

Uh oh!

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

Comment thread src/click/core.py Resolved

Uh oh!

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

Comment thread docs/documentation.md Resolved

Uh oh!

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

This was linked to issues May 23, 2026
add help to click argument #587
Closed
Help section for arguments #375
Closed
@click.argument don't support help parameter #1049
Closed
Inconsistent support of help keyword for @click.argument #1552
Closed
@kdeldycke kdeldycke mentioned this pull request May 23, 2026
Fix deprecated label formatting #3509
Merged
@Rowlando13

Rowlando13 commented May 27, 2026

Copy link
Copy Markdown
Member

@yurishevtsov After you fix up the few things listed, then should be good to go.

All reactions

Sorry, something went wrong.

Uh oh!

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

@yurishevtsov
yurishevtsov force-pushed the add-help-kwarg-to-arg-params branch from b02456f to 21942ed Compare May 27, 2026 22:20
@yurishevtsov
yurishevtsov requested review from Rowlando13 and kdeldycke May 27, 2026 22:34
@yurishevtsov

yurishevtsov commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

Pushed 21942ed addressing all the review feedback:

  • Renamed Command.format_args --> format_arguments
  • Renamed section heading "Arguments" --> "Positional arguments"
  • Extended test coverage per review comments

Branch is rebased onto current main. Ready for another pass.

All reactions

Sorry, something went wrong.

Uh oh!

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

kdeldycke
kdeldycke approved these changes May 28, 2026
View reviewed changes

@kdeldycke kdeldycke left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good to be merged to main.

Sorry, something went wrong.

Uh oh!

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

All reactions
@yurishevtsov @Rowlando13 @kdeldycke
Add help parameter to arguments
684b3f5
Closes pallets#2983

Co-authored-by: Rowlando13 <[email protected]>
Co-authored-by: Kevin Deldycke <[email protected]>
@kdeldycke
kdeldycke force-pushed the add-help-kwarg-to-arg-params branch from 21942ed to 04cd2e4 Compare May 28, 2026 07:23
@kdeldycke
kdeldycke force-pushed the add-help-kwarg-to-arg-params branch from 04cd2e4 to 684b3f5 Compare May 28, 2026 07:27
@kdeldycke

kdeldycke commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Just updated the tests so this is immune to the #3509 issue, then rebase that PR on top of main and squashed the commits.

Let's merge this PR! :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke
kdeldycke merged commit c480210 into pallets:main May 28, 2026
11 checks passed

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 Jul 26, 2026
@kdeldycke kdeldycke added parsing Parsing, parameters, commands, chaining, context and removed f:parameters labels Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@kdeldycke kdeldycke kdeldycke approved these changes
@AndreasBackx AndreasBackx Awaiting requested review from AndreasBackx
@janluke janluke Awaiting requested review from janluke
@Rowlando13 Rowlando13 Awaiting requested review from Rowlando13

Uh oh!

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

Assignees

No one assigned

Labels

help output Help text formatting, layout, and --help rendering parsing Parsing, parameters, commands, chaining, context

Projects

None yet

Milestone

8.5.0

Development

Successfully merging this pull request may close these issues.

Add help to argument parameter Inconsistent support of help keyword for @click.argument @click.argument don't support help parameter add help to click argument Help section for arguments

Uh oh!

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

4 participants

@yurishevtsov @kdeldycke @Rowlando13 @janluke
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.