-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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: add FlagSet usage examples #36307
Comments
The example for https://golang.org/pkg/flag/#Value does use a flagset, but I agree that it's not easy to find. Sending a CL. |
Change https://golang.org/cl/212757 mentions this issue: |
Change https://golang.org/cl/212599 mentions this issue: |
/cc @robpike |
I would like to work on coming up with examples for FlagSet commands usage. |
@Codinee - There is already an active CL for this. |
Any updates you can propose to this CL? |
@obeyda note that I asked for a rebase on the CL so we can re-test and merge. |
Friendly ping @obeyda, as someone else rebased the CL but now there's a missing import due to it. I know it's been some time, but if you can't fix up this patch so we can merge it, we should close the CL so someone else can take this. |
Change https://go.dev/cl/545736 mentions this issue: |
https://go.dev/cl/545736 is marked "ready to submit" in Gerrit. What is the next step? |
What did you expect to see?
Having some examples on the flag package's docs showing how to create subcommands with
FlagSet
.What did you see instead?
There's only a package example and
Value
interface usage and none of them shows how to useFlagSet
to create subcommands.The text was updated successfully, but these errors were encountered: