From 405141964e29c00a4015fac1249818f575a0b3f8 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Sun, 14 Aug 2011 18:56:31 +0200 Subject: [PATCH] lp-shell: rename options.mode to options.shell --- lp-shell | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lp-shell b/lp-shell index aa1d515..83c715c 100755 --- a/lp-shell +++ b/lp-shell @@ -34,10 +34,10 @@ def main(): dest='anonymous', default=False, help='Login anonymously into LP.') opt_parser.add_option('--ipython',action='store_const', - dest='mode',const='ipython', default="ipython", + dest='shell',const='ipython', default="ipython", help='Use ipython shell (default).') opt_parser.add_option('--python',action='store_const', - dest='mode',const='python', + dest='shell',const='python', help='Use python shell.') @@ -71,7 +71,7 @@ def main(): banner += '\nNote: LP can be accessed through the "lp" object.' sh = None - if options.mode == "ipython": + if options.shell == "ipython": try: try: # ipython >= 0.11 from IPython.frontend.terminal.embed import InteractiveShellEmbed