Cli Module

class cli_command_parser.conversion.cli.ParserConverter[source]

Bases: Command

Tool to convert an argparse.ArgumentParser into a cli-command-parser Command

action
input: Param[Path]
no_smart_for

Disable “smart” for loop handling that attempts to dedupe common subparser params

verbose

Increase logging verbosity (can specify multiple times)

dry_run

Print the actions that would be taken instead of taking them

_init_command_()[source]
property script[source]
class cli_command_parser.conversion.cli.Convert[source]

Bases: ParserConverter

Print the cli-command-parser Commands that are equivalent to the discovered argparse ArgumentParsers

input: Param[Path]

A file containing an argparse.ArgumentParser

add_methods

Do not include boilerplate methods in Commands

main()[source]
class cli_command_parser.conversion.cli.Pprint[source]

Bases: ParserConverter

Print a tiered internal representation of the discovered argparse ArgumentParsers and their groups/arguments

input: Param[Path]

A file containing an argparse.ArgumentParser

main()[source]