Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add named arguments to the use line #1666

Closed
georgettica opened this issue Apr 13, 2022 · 1 comment
Closed

add named arguments to the use line #1666

georgettica opened this issue Apr 13, 2022 · 1 comment
Labels
area/docs-generation Generation of docs via Cobra kind/feature A feature request for cobra; new or enhanced behavior

Comments

@georgettica
Copy link
Contributor

Purpose

As a cobra user, I would like to add named arguments (maybe even in the LongDescription explain more on them) so they will show up when I run the --help on the created command

Current state

I need to add to the Use my arguments or override the whole line with UseLine

cobra/command.go

Line 1245 in 5b2b9e9

func (c *Command) UseLine() string {

this is related to openshift/osdctl#206

@johnSchnake johnSchnake added kind/feature A feature request for cobra; new or enhanced behavior area/docs-generation Generation of docs via Cobra labels Apr 15, 2022
@johnSchnake
Copy link
Collaborator

Duplicate of #378

That issue has some interest but since it could be an issue with larger scope I thought it warranted a more thorough design if you're interested in taking that on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs-generation Generation of docs via Cobra kind/feature A feature request for cobra; new or enhanced behavior
Projects
None yet
Development

No branches or pull requests

2 participants