Package kenozooid :: Package cli :: Class CLICommand

Class CLICommand

source code

object --+
         |
        CLICommand

Kenozooid's command.
Instance Methods
 
__call__(self, args)
Execute Kenozooid command.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
add_arguments(self, parser)
Add a command arguments to command line parser.
source code
Class Variables
  description = ''
Properties

Inherited from object: __class__

Method Details

add_arguments(self, parser)
Class Method

source code 
Add a command arguments to command line parser.
Parameters:
  • parser - Parser instance.

__call__(self, args)
(Call operator)

source code 

Execute Kenozooid command.

May raise ArgumentError exception to indicate wrong arguments.

Parameters:
  • args - Command arguments.