Skip to content

Release v0.2.0

Compare
Choose a tag to compare
@brentyi brentyi released this 23 Aug 23:12
93f5baa

New features:

  • Support for mixed-type literals.
  • Support nesting structures in standard Python containers: List[Struct], Set[Struct], Tuple[Struct, Struct], Dict[str, Struct], etc.
  • Add dcargs.generate_parser() for integration with tools like shtab, argcomplete, pyzshcomplete, etc.
  • Support defaults with narrower types than annotations.
  • Support for including multiple optional subparsers, more clear/verbose subcommand names.
  • Support inheritance from generic types.
  • Generalized support for directly passing in types, eg dcargs.cli(Union[SubcommandA, SubcommandB]).

Maintenance:

  • Helptext formatting improvements: consistency for subcommands, Windows support, edge case fixes.
  • Reduce redundant logic.