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

Support "description" tag #56

Closed
ogerardin opened this issue Apr 24, 2019 · 1 comment
Closed

Support "description" tag #56

ogerardin opened this issue Apr 24, 2019 · 1 comment

Comments

@ogerardin
Copy link

Help usage generation would be improved if struct members supported a "description" tag (or a sub-tag of "config"), e.g.

type Configuration struct {
	Port          int    `config:"port" description:"listening port number"`
}

or

type Configuration struct {
	Port          int    `config:"port,description=listening port number"`
}

@steamrolla
Copy link
Contributor

The above pull request should be closed as the flags backend has changed since it's submission.

A new pull request has been submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants