pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Fixing error in documentation

Open cassava opened this issue 10 years ago • 3 comments

I noticed that there seems to be an error in the documentation; maybe you care to merge this fix?

cassava avatar May 31 '14 17:05 cassava

That whole section of the docs is kind of crappy. The VarP example below that line is also wrong, that function doesn't take a default value and belongs inside a function not at top level. IMO that line should just be dropped entirely, VarP is pretty discoverable anyways.

ogier avatar Jun 08 '14 08:06 ogier

True, the docs could be improved a little. Some of the text still applies (only) to the original flag package.

cassava avatar Jun 08 '14 13:06 cassava

Do you have any examples of this? Ideally there shouldn't be any usage of the flag package that is broken by switching to pflag, so docs that describe how to create flags the old way don't only apply to the stdlib package.

ogier avatar Jun 08 '14 15:06 ogier