All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Parse doc for class as description.
- Parse doc for class attributes as help.
- Update
class TypedArgs
.
- Add
ta.TypedArgs
for better intellisense.
- Add
@overload
for API.
- Support
add_argument_group
- Support
add_subparsers
- Rename
from_args
,from_known_args
toparse_args
andparse_known_args
becauseArgs
is now aArgumentParser
.
- Don't remmber what I changed.
- Fix default argument.
add_argument(default=[])
now init the correct[]
for dataclass.
- Function
add_argument
acceptstype
now and we don't check the type annotations in dataclass fields. This maketyped-args
less strict but more easy to use. - Python 3.6 is supported now. Python 3.5 should work but I didn't test it.
- make
@classmethod
return correct type
- Add
__repr__
. - Add a comparison between
argparse
andTypedArgs
. - Fix NotImplementedError.
- Use
parser_factory()
to createparser
. - Support optional parsing. If not using
add_argument
function, attributes will not be parsed.
- Fix
repr
.
- Support
pickle
.
- Assign attributes by name and type
parser
is initialized inside class.
- Define
parser
as a local variable.
- Define
parser
as a global varaible. - Replace attributes by name