pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Add RemoveFlag() function

Open tiegz opened this issue 2 years ago • 3 comments

This adds the ability to remove a Flag from a FlagSet, e.g. flagSet.RemoveFlag("my-flag")

My end-goal is to allow cobra commands to opt-out of PersistentFlags() that they inherit. Please LMK if I'm on the wrong track here.

(plus a few formatting changes)

tiegz avatar Sep 15 '22 23:09 tiegz

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 15 '22 23:09 CLAassistant

ping

tiegz avatar Mar 10 '23 16:03 tiegz

ping

tiegz avatar Nov 14 '23 20:11 tiegz