The ironicclient.v1.shell Module

ironicclient.v1.shell.enhance_parser(parser, subparsers, cmd_mapper)[source]

Enhance parser with API version specific options.

Take a basic (nonversioned) parser and enhance it with commands and options specific for this version of API.

Parameters:
  • parser – top level parser
  • subparsers – top level parser’s subparsers collection where subcommands will go