From: W. Trevor King Date: Thu, 12 Aug 2010 20:11:20 +0000 (-0400) Subject: Rename ./bin/hooke's --command-no-exit to --persist. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a9cccbacf974a060ab0b9fbc1e920edae26eb41;p=hooke.git Rename ./bin/hooke's --command-no-exit to --persist. Inspired by the similar gnuplot option. Certainly less awkward than our old option. --- diff --git a/hooke/hooke.py b/hooke/hooke.py index c4b2200..70ca59a 100644 --- a/hooke/hooke.py +++ b/hooke/hooke.py @@ -197,8 +197,7 @@ def main(): 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', @@ -231,7 +230,7 @@ def main(): 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)