Releases: Yoctol/yoctol-argparse
Releases · Yoctol/yoctol-argparse
Enhance IdKwargs
- rewrite IdKwargsPair.str
- supports custom metavar
Nested Namespace
- parser.add_argument 可以用 dest=
a.b.c
來 nested set attribute
Subaction of IdValuePair and IdKwargs
- remove
AppendIdValuePair
andStoreIdKwargs
- add
IdValuePair
andIdKwargs
both supports store and append by feeding sub_action argument whenparser.add_argument
- replace eval of kwargs parsing by ast.literal_eval for security issue
never supports builtin functions again
Fix StoreIdKwargs split_token
set default split_token to ,
StoreIdKwargs Action
- StoreIdKwargs Action
- for (id, kwargs) tuple
- kwargs can be parsed from formatted string like
a=2&b=3
First Release
- YoctolFormatter
- support type metavar without
__name__
attribute - underline choices
- support type metavar without
- YoctolArgumentParser
- use YoctolFormatter as default formatter_cls
- AppendIdValuePair (Action)
- for (id, value) tuple
- separately apply choices on id, type on value
- types
- add int/float_in_range, path types