pflag icon indicating copy to clipboard operation
pflag copied to clipboard

implement CopyToGoFlagSet

Open pohly opened this issue 3 years ago • 1 comments

This is useful for programs which want to define some flags with pflag (for example, in external packages) but still need to use Go flag command line parsing to preserve backward compatibility with previous releases.

Without this in pflag, such tools have to resort to copying via the public API, which leads to less useful help messages (type of basic values will be unknown).

Fixes: https://github.com/spf13/pflag/issues/329

pohly avatar Sep 15 '21 10:09 pohly

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 15 '21 10:09 CLAassistant