mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
lp-shell: rename options.mode to options.shell
This commit is contained in:
parent
04d4e0f3d9
commit
405141964e
6
lp-shell
6
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user