aboutsummaryrefslogtreecommitdiff
path: root/flag.go
AgeCommit message (Collapse)Author
2025-05-25Use modern APIs and retire MapKeysGrégoire Duchêne
2023-10-07Add ParseStringRegexpv0.7.0Grégoire Duchêne
2023-07-02Use StoreInt32 instead of SwapInt32v0.6.1Grégoire Duchêne
2023-07-02Simplify statementGrégoire Duchêne
2023-02-26Add ParseStringerEnumv0.6.0Grégoire Duchêne
2023-02-26Parameterize UnknownEnumValueErrorGrégoire Duchêne
Also, do not sort the expected values in UnknownEnumValueError.Error.
2023-02-26Add ParseStringGrégoire Duchêne
2022-12-10Add ParseProtobufEnumv0.5.0Grégoire Duchêne
2022-12-10Add ParseStringEnumGrégoire Duchêne
2022-12-10Reorder things a bitGrégoire Duchêne
2022-12-10Add Feature and FlagFeature{,Var}Grégoire Duchêne
Feature is essentially a boolean flag that can be safely mutated at run time. FlagFeature{,Var} make Feature objects work with flags.
2022-12-03Remove ‘value’ argument from Flag{,Slice}Varv0.4.0Grégoire Duchêne
It’s basically redundant since a pointer to the value is already provided; callers can just set a default value there.
2022-12-03Remove redundant type conversionsGrégoire Duchêne
2022-12-03Remove redundant ParseStringGrégoire Duchêne
2022-12-03Remove MutableFlagValueGrégoire Duchêne
We can just have an ad hoc interface and not clutter the API.
2022-12-03Prevent flags from being set again by defaultv0.3.0Grégoire Duchêne
Flag values that are safe to be set again should implement the new MutableFlagValue interface.
2022-12-03Drop T from the name of the Flag functionsGrégoire Duchêne
Kind of redundant given that there’s a type parameter right after the function name.
2022-12-03Add InitFlagSetGrégoire Duchêne
2022-12-03Have FlagTSlice{,Var} take an optional separatorGrégoire Duchêne
This separator, when passed, allows for multiple values to be passed at a time.
2022-06-26Simplify the flag helper functionsv0.1.0Grégoire Duchêne
2022-06-26Add FlagVarDef and FlagVarSliceDefGrégoire Duchêne
2022-06-26Add a few flag helper functionsGrégoire Duchêne