Skip to content

command decorator params argument - #2203

Merged
davidism merged 1 commit into
mainfrom
command-decorator-params
Feb 22, 2022
Merged

davidism merged 1 commit into
mainfrom
command-decorator-params

Conversation

@davidism

Copy link
Copy Markdown
Member

The @command decorator accepts the params argument that Command accepts, instead of raising a TypeError. Params added with @option and @argument are appended to the end of the list if given. This makes the signatures match, and makes it easier to add common options to multiple commands.

closes #2131

@davidism davidism added this to the 8.1.0 milestone Feb 22, 2022
@davidism
davidism merged commit 55b2715 into main Feb 22, 2022
@davidism
davidism deleted the command-decorator-params branch February 22, 2022 04:14
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 9, 2022
@kdeldycke kdeldycke added the parsing Parsing, parameters, commands, chaining, context label Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

parsing Parsing, parameters, commands, chaining, context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow params attribute in decorators

2 participants