action='append', default=[],
help='Add a command line Hooke command to run.')
p.add_option(
- '--command-no-exit', dest='command_exit',
- action='store_false', default=True,
+ '-p', '--persist', dest='persist', action='store_true', default=False,
help="Don't exit after running a script or commands.")
p.add_option(
'--save-config', dest='save_config',
try:
hooke = runner.run_lines(hooke, options.commands)
finally:
- if options.command_exit == True:
+ if options.persist == False:
hooke.close(save_config=options.save_config)
sys.exit(0)