"more verbose."
, action="store_true"
, dest="debug")
+ parser.add_option( "-t", "--test"
+ , help="Run in testing mode. This means no actions "
+ "are taken, only show what would be done "
+ "(as far as possible without taking "
+ "actions, of course)."
+ , action="store_true"
+ , dest="test")
return parser
def main(argv):
# Create a handler for this action
handler = handlers.create_handler(action_ty, action_config)
# Run it
- handler.run()
- handler.finish()
+ handler.run(test=opts.test)
+ handler.finish(test=opts.test)
except Exception, e:
log.error('Running action "%s" failed: %s', action, e)