from ccdb.cmd import ConsoleUtilBase def create_util_instance(): import ccdb.cmd util = HelpUtil() if(ccdb.cmd.verbose): print "registring HelpConsoleUtil" return util class HelpUtil(ConsoleUtilBase): command = "help" name = "Help" shortDescr = "Prints help for each util" def process(self, args): if self.context: print "context" for command,util in self.context.utils.items(): print util.name