openstack - python-novaclient source code explanation -
i trying figure out python-novaclient source code , need more familiar python. code below exactly? how init method in class novaclientargumentparser being used.
from shell.py program line 197:
class novaclientargumentparser(argparse.argumentparser): def __init__(self, *args, **kwargs): super(novaclientargumentparser, self).__init__(*args, **kwargs)
the class called somewhere below:
class openstackcomputeshell(object): def get_base_parser(self): parser = novaclientargumentparser( prog='nova', description=__doc__.strip(), epilog='see "nova command" ' ...... ...... def main(self, argv): # parse args once find version , debug settings parser = self.get_base_parser() .......... ..........
thanks al
Comments
Post a Comment