'--command-no-exit', dest='command_exit',
action='store_false', default=True,
help="Don't exit after running a script or commands.")
+ p.add_option(
+ '--debug', dest='debug', action='store_true', default=False,
+ help="Enable debug logging.")
options,arguments = p.parse_args()
if len(arguments) > 0:
print >> sys.stderr, 'More than 0 arguments to %s: %s' \
if options.version == True:
print version()
sys.exit(0)
+ if options.debug == True:
+ hooke.config.set(
+ section='handler_hand1', option='level', value='NOTSET')
+ hooke.load_log()
if options.script != None:
with open(os.path.expanduser(options.script), 'r') as f:
options.commands.extend(f.readlines())