summaryrefslogtreecommitdiff
path: root/flag.go
AgeCommit message (Collapse)Author
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