def __init__(self,*args,**kwargs): Cmd2.__init__(self,*args,**kwargs) self.conn=None self.client=None self.prompt='styx> '
def onecmd(self,line): try: return Cmd2.onecmd(self,line) except Error,e : print e.args[0]