pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.

Results 15 pflag issues
Sort by recently updated
recently updated
newest added

If I've got multiple flags, say, like this: ``` --user="something" --language="blah" --starCount=2 .... ... ... ``` then how to check which flag has been given input in the cli? Because...

Removes Init method to standardize on NewFlagSet. This method can be used to check if a flag was specified by the user. (I noticed a similar attempt was done in...

Hello, I would like to confirm if this package is still maintained or basically the maintained fork is https://github.com/spf13/pflag. In case that the mentioned fork is the maintained version, could...

This way users don't need to scroll to the bottom of the readme just to find a link to the godoc

Hi, things is I want parse 2 bool args, but there is a positional arg, like this: gofind ./ -d -f ./ is a positional arg, but once I add...

I spent a bit scratching my head trying to figure out why my flags weren't being set/parsed correctly. The issue was that I was using `f := pflag.FlagSet{}` instead of...

I'm probably missing something obvious, but how do I use pflag so that the only valid option is the short variant? That is, if I want just "-h" rather than...

Please use semantic versioning: - http://semver.org/ - https://en.wikipedia.org/wiki/Software_versioning - https://wiki.debian.org/UpstreamGuide#Releases_and_Versions

First of all, thanks for a nice software! I tried to create a subcommand example but I couldn't make it work as expected. https://gist.github.com/hnakamur/3c8fba54b792536a196c With Go's standard flag package, my...

Currently only `flag.Bool` can be used as `--flag` without supplying a value. There's some situation when non-bool flag should be able to use default value when no value was supplied....