, default="actions"
, dest="actions_dir"
, metavar="ACTIONS_DIR")
+ parser.add_option( "-d", "--debug"
+ , help="Run in debug mode. This only means logging is "
+ "more verbose."
+ , action="store_true"
+ , dest="debug")
return parser
def main(argv):
options are the parsed commandline options.
"""
# We use the default options for now
- logging.basicConfig(level=logging.INFO)
+ level = logging.INFO
+ if(options.debug):
+ level = logging.DEBUG
+ logging.basicConfig(level=level)
log.debug("Initialized logging configuration")