diff options
| author | Patrick Ohly <[email protected]> | 2021-09-15 12:49:31 +0200 |
|---|---|---|
| committer | Patrick Ohly <[email protected]> | 2025-07-30 10:26:34 +0200 |
| commit | 44aa4aa86e19d69d62479bfa1a244d4858a62ee5 (patch) | |
| tree | a9f740a38a62706ae1124624809eebd32dd90847 /string_slice.go | |
| parent | c78f730fb023e4012c4097b24408867cd5c5bdde (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 'string_slice.go')
0 files changed, 0 insertions, 0 deletions
