pflag icon indicating copy to clipboard operation
pflag copied to clipboard

flagset.Output() missing from methods

Open yarbelk opened this issue 3 years ago • 4 comments

Its in the stdlib flag interface; and when you're doing flagset specific Usage() functions, you kinda need it if you want to use the same output as the flag.Usage()...

yarbelk avatar Jun 07 '21 14:06 yarbelk

Nope; its there: just doesn't have a tag.

yarbelk avatar Jun 07 '21 14:06 yarbelk

@yarbelk What do you mean when you say It's there, just does not have a tag? I can't find the method in FlagSet.

snebel29 avatar Sep 16 '21 17:09 snebel29

https://github.com/spf13/pflag/blob/d5e0c0615acee7028e1e2740a11102313be88de1/flag.go#L258-L265

In master branch, the Output() method is found. (PR https://github.com/spf13/pflag/pull/220) But latest tagged version v1.0.5 does not include it.

podhmo avatar Oct 09 '21 19:10 podhmo

Hey, I use a commit with PR #220 merged extensively in my projects. It would be great to have new tagged version containing it! And this issue closed that way.

wkhere avatar Jun 02 '22 20:06 wkhere