(self, cmdp)
return self.STATUS_OK
version: Print version information
version: Print version information
version : Print version information
def do_version(self, cmdp):
        """
        version: Print version information
        """
        if cmdp.missing_options():  # syntax error
            return self.STATUS_ERROR

        try:
            Msg().out("%s %s" % ("version:", __version__))
            Msg().out("%s %s" % ("tarball:", Config.conf['tarball']))
            Msg().out("%s %s" % \
                ("tarball_release:", Config.conf['tarball_release']))
        except NameError:
            return self.STATUS_ERROR

        return self.STATUS_OK
def do_version ( self , cmdp ) : if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR try : Msg ( ) . out ( "%s %s" % ( "version:" , __version__ ) ) Msg ( ) . out ( "%s %s" % ( "tarball:" , Config . conf [ 'tarball' ] ) ) Msg ( ) . out ( "%s %s" % ( "tarball_release:" , Config . conf [ 'tarball_release' ] ) ) except NameError : return self . STATUS_ERROR return self . STATUS_OK