cobra
cobra copied to clipboard
fix: Check for bool flag in `stripFlags` (#2251)
A try to fix #2251.
- Removed the call to
mergePersistentFlagsin favor of just collecting all flags, including the ones from the children; - Refactored
stripFlags; - Had to reimplement
flag.AddFlagSetto check for shorthands.
Tested with unit tests.