We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e2390 commit 5daf387Copy full SHA for 5daf387
README.rst
@@ -64,10 +64,12 @@ Powerful argparse-like low level parsers:
64
65
parser = ArgumentParser()
66
parser.add_argument("--config", action="config") # support config files
67
- parser.add_argument("--opt", type=Union[int, Literal["off"]) # complex arguments via type hints
68
- parser.add_function_arguments(main_function, "function") # add entire function signatures
+ parser.add_argument("--opt", type=Union[int, Literal["off"]]) # complex arguments via type hints
+ parser.add_function_arguments(main_function, "function") # add function parameters
69
+ parser.add_class_arguments(SomeClass, "class") # add class parameters
70
...
71
cfg = parser.parse_args()
72
+ init = parser.instantiate_classes(cfg)
73
74
75
0 commit comments