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

flag how to using multiple single flags #21359

Closed
lucasjinreal opened this issue Aug 9, 2017 · 2 comments
Closed

flag how to using multiple single flags #21359

lucasjinreal opened this issue Aug 9, 2017 · 2 comments

Comments

@lucasjinreal
Copy link

I write 2 flag say -d -f all are bool value, -d -f means enable -d and -f, but how to using flag let user can type: -df to enable both?

Trying to figure out but failed, flag try to parse as a param df which not defined. Any idea would be appreciated!

@bradfitz
Copy link
Contributor

bradfitz commented Aug 9, 2017

For questions about Go, see https://golang.org/wiki/Questions.

@bradfitz bradfitz closed this as completed Aug 9, 2017
@lucasjinreal
Copy link
Author

If flag doesn't support this feature please let me know.

@golang golang locked and limited conversation to collaborators Aug 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants