vitess-gh/go/flagutil
Andrew Mason c515216e94
[flagutil] Cleanup `flag` references (#11381)
This:
- Corrects an initial migration of the `DualFormat*` functions to
  _actually_ install the flag on the passed in flagset, rather than the
  global one.
- Updates `StringListVar` to fully-implement `pflag.Value`, mimicking
  pflag's `StringSlice` implementation for this method.
- Removes the compile-time type-check on `StringSetFlag` implementing
  `flag.Value` (which is a subset of `pflag.Value` anyway), as well as in
  the test code.

Closes #11296.

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2022-09-28 13:56:32 -04:00
..
flagutil.go [flagutil] Cleanup `flag` references (#11381) 2022-09-28 13:56:32 -04:00
flagutil_test.go [flagutil] Cleanup `flag` references (#11381) 2022-09-28 13:56:32 -04:00
optional.go [cli] [servenv] Migrate flags used by grpc servers to `pflag` (#11165) 2022-09-07 09:05:20 -04:00
sets.go [flagutil] Cleanup `flag` references (#11381) 2022-09-28 13:56:32 -04:00