COT.help module

Provide ‘help’ keyword for COT CLI.

class COTHelp(UI)[source]

Bases: COT.submodule.COTGenericSubmodule

Provide ‘help <subcommand>’ syntax.

Inherited attributes: UI

Attributes: subcommand

create_subparser(parent)[source]

Add subparser for the CLI of this submodule.

Parameters:parent (object) – Subparser grouping object returned by ArgumentParser.add_subparsers()
Returns:('help', subparser)
run()[source]

Display the help menu for the specified subcommand.

subcommand[source]

CLI subcommand to give help for.

If None, then help will be displayed for the COT global parser.