- self.parser.add_option("", "--debug", dest="debug",
- help="Enable debugging",
- type="int",
- metavar="[0|1]",
- action="callback",
- callback=parse_bool)
- self.parser.add_option("", "--mail", dest="mail",
- help="Enable sending email",
- type="int",
- metavar="[0|1]",
- action="callback",
- callback=parse_bool)
- self.parser.add_option("", "--bcc", dest="bcc",
- help="Include BCC to user",
- type="int",
- metavar="[0|1]",
- action="callback",
- callback=parse_bool)
- self.parser.add_option("", "--squeeze", dest="squeeze",
- help="Squeeze sites or not",
- type="int",
- metavar="[0|1]",
- action="callback",
- callback=parse_bool)
- self.parser.add_option("", "--policysavedb", dest="policysavedb",
- help="Save the policy event database after a run",
- type="int",
- metavar="[0|1]",
- action="callback",
- callback=parse_bool)
- self.parser.add_option("", "--checkopt", dest="checkopt",
- action="store_true",
- help="print current options")
- self.parser.add_option("", "--run", dest="run",
- action="store_true",
- help="Perform monitor or print configs")
- self.parser.add_option("", "--email", dest="email",
- help="Specify an email address to use for mail when "+\
- "debug is enabled or for bcc when it is not")
-
- # config_command is needed to keep subsequent loads of config() from
- # trying to parse the arguments that have already been parsed by
- # the new main().
- if parser == None and config_command:
- print "calling parse_args"
- self.parse_args()