def help(self, argv):
        """help [-lLcia] [<commandname>]...
    Print a list of available commands, or information about a command,
    if the name is given.  Options:
        -l Shows only local (object specific) commands.
        -c Shows only the dynamic commands.
        -L shows only local and dynamic commands.
        -i Shows only the inherited commands from the parent context.
        -a Shows all commands (default)
        """
        local=True ; created=True ; inherited=True
        opts, longs, args = self.getopt(argv, "lLcia")
        for opt, optarg in opts:
            if opt =="-i":
                local=False ; created=False ; inherited=True
            elif opt == "-c":
                local=False ; created=True ; inherited=False
            elif opt == "-l":
                local=True ; created=False ; inherited=False
            elif opt == "-a":
                local=True ; created=True ; inherited=True
            elif opt == "-L":
                local=True ; created=True ; inherited=False
        if not args:
            args = self.get_commands()
        for name in args:
            try:
                doc = getattr(self, name).__doc__
            except __HOLE__:
                self._print("No command named %r found." % (name,))
                continue
            if not doc:
                self._print("No docs for %r." % (name,))
            elif local and self.__class__.__dict__.has_key(name):
                self._ui.help_local(doc)
            elif created and "*" in doc: # dynamic method from generic_cli
                self._ui.help_created(doc)
            elif inherited:
                self._ui.help_inherited(doc)
dataset/ETHPy150Open kdart/pycopia/fepy/pycopia/fepy/CLI.py/BaseCommands.help