def __init__(self):
        """
        Constructor
        """
        self.__parser = optparse.OptionParser(usage="%prog [PARTIAL_PATH] [-s SCHEMA_ID] [-v]", version="%prog 1.0")

        # optional...
        self.__parser.add_option("--schema", "-s", type="int", nargs=1, action="store", dest="schema_id",
                                 help="restrict to topics matching SCHEMA_ID")

        self.__parser.add_option("--verbose", "-v", action="store_true", dest="verbose", default=False,
                                 help="report narrative to stderr")

        self.__opts, self.__args = self.__parser.parse_args()
def __init__ ( self ) : self . __parser = optparse . OptionParser ( usage = "%prog [PARTIAL_PATH] [-s SCHEMA_ID] [-v]" , version = "%prog 1.0" ) self . __parser . add_option ( "--schema" , "-s" , type = "int" , nargs = 1 , action = "store" , dest = "schema_id" , help = "restrict to topics matching SCHEMA_ID" ) self . __parser . add_option ( "--verbose" , "-v" , action = "store_true" , dest = "verbose" , default = False , help = "report narrative to stderr" ) self . __opts , self . __args = self . __parser . parse_args ( )
Constructor