lp-shell: rename options.mode to options.shell

This commit is contained in:
Julian Taylor 2011-08-14 18:56:31 +02:00
parent 04d4e0f3d9
commit 405141964e

View File

@ -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