synth_argparse
Class info¶
🛈 DocStrings¶
Module for generating ArgumentParser CLI implementations from CommandInfo objects.
create_parser
¶
create_parser(cmd_info: CommandInfo) -> ArgumentParser
Create an ArgumentParser from a CommandInfo object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cmd_info
|
CommandInfo
|
The CommandInfo object to convert |
required |
Returns:
| Type | Description |
|---|---|
ArgumentParser
|
An ArgumentParser with all commands and (nested) subcommands |