From 5a9cccbacf974a060ab0b9fbc1e920edae26eb41 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 12 Aug 2010 16:11:20 -0400 Subject: [PATCH] Rename ./bin/hooke's --command-no-exit to --persist. Inspired by the similar gnuplot option. Certainly less awkward than our old option. --- hooke/hooke.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.26.2