Release v0.2.0
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 likeshtab
,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.