-parser = parsermodule.getParser()
-parser.set_defaults(withpcu=False,
- refresh=False)
-parser.add_option("-f", "--nodelist",dest="filename",default="", metavar="FILE",
- help="Provide the input file for the downnode list")
-parser.add_option("", "--refresh", action="store_true", dest="refresh",
- help="Refresh the cached values")
-
-config = parsermodule.parse_args(parser)
-
-if not config.run:
- k = config.__dict__.keys()
- k.sort()
- for o in k:
- print o, "=", config.__dict__[o]
- print "Add --run to actually perform the command"
- sys.exit(1)
-
-pculist = plccache.l_pcus # database.if_cached_else_refresh(1,
- # config.refresh,
- # "pculist",
- # lambda : plc.GetPCUs())