Skip to content

Releases: Yoctol/yoctol-argparse

Enhance IdKwargs

17 Mar 06:25
e24a2aa
Compare
Choose a tag to compare
  1. rewrite IdKwargsPair.str
  2. supports custom metavar

Nested Namespace

11 Mar 06:53
e6f8c5a
Compare
Choose a tag to compare
  1. parser.add_argument 可以用 dest=a.b.c 來 nested set attribute

Subaction of IdValuePair and IdKwargs

25 Nov 09:28
9259636
Compare
Choose a tag to compare
  1. remove AppendIdValuePair and StoreIdKwargs
  2. add IdValuePair and IdKwargs
    both supports store and append by feeding sub_action argument when parser.add_argument
  3. replace eval of kwargs parsing by ast.literal_eval for security issue
    never supports builtin functions again

Fix StoreIdKwargs split_token

22 Nov 14:06
95d87aa
Compare
Choose a tag to compare

set default split_token to ,

StoreIdKwargs Action

15 Nov 13:36
148fd7e
Compare
Choose a tag to compare
  • StoreIdKwargs Action
    1. for (id, kwargs) tuple
    2. kwargs can be parsed from formatted string like a=2&b=3

First Release

15 May 10:09
fca6fe4
Compare
Choose a tag to compare
  • YoctolFormatter
    • support type metavar without __name__ attribute
    • underline choices
  • 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