aboutsummaryrefslogtreecommitdiff
path: root/ip_test.go
diff options
context:
space:
mode:
authorPatrick Ohly <[email protected]>2021-09-15 12:49:31 +0200
committerPatrick Ohly <[email protected]>2025-07-30 10:26:34 +0200
commit44aa4aa86e19d69d62479bfa1a244d4858a62ee5 (patch)
treea9f740a38a62706ae1124624809eebd32dd90847 /ip_test.go
parentc78f730fb023e4012c4097b24408867cd5c5bdde (diff)
add CopyToGoFlagSet
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, in particular support for single-dash flags. 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).
Diffstat (limited to 'ip_test.go')
0 files changed, 0 insertions, 0 deletions