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.TypedArgsfor better intellisense.
- Add
@overloadfor API.
- Support
add_argument_group - Support
add_subparsers - Rename
from_args,from_known_argstoparse_argsandparse_known_argsbecauseArgsis now aArgumentParser.
- Don't remmber what I changed.
- Fix default argument.
add_argument(default=[])now init the correct[]for dataclass.
- Function
add_argumentacceptstypenow and we don't check the type annotations in dataclass fields. This maketyped-argsless strict but more easy to use. - Python 3.6 is supported now. Python 3.5 should work but I didn't test it.
- make
@classmethodreturn correct type
- Add
__repr__. - Add a comparison between
argparseandTypedArgs. - Fix NotImplementedError.
- Use
parser_factory()to createparser. - Support optional parsing. If not using
add_argumentfunction, attributes will not be parsed.
- Fix
repr.
- Support
pickle.
- Assign attributes by name and type
parseris initialized inside class.
- Define
parseras a local variable.
- Define
parseras a global varaible. - Replace attributes by name