aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/shell.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-01 10:23:37 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:12 -0700
commitaa387fc57ec1c176a739df8c5f4cedaf70ae9af1 (patch)
treebd6ca7a50b59199fb0e1cdfc6d24755564811978 /mediagoblin/gmg_commands/shell.py
parente7c08e3550d19691d989d48d8d499eb7b2b9f80a (diff)
downloadmediagoblin-aa387fc57ec1c176a739df8c5f4cedaf70ae9af1.tar.lz
mediagoblin-aa387fc57ec1c176a739df8c5f4cedaf70ae9af1.tar.xz
mediagoblin-aa387fc57ec1c176a739df8c5f4cedaf70ae9af1.zip
use parser.parse_known_args() instead of parser.parse_args()
Diffstat (limited to 'mediagoblin/gmg_commands/shell.py')
-rw-r--r--mediagoblin/gmg_commands/shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/shell.py b/mediagoblin/gmg_commands/shell.py
index 4998acd7..b19af837 100644
--- a/mediagoblin/gmg_commands/shell.py
+++ b/mediagoblin/gmg_commands/shell.py
@@ -65,10 +65,10 @@ def shell(args):
"""
user_namespace = {
'mg_globals': mg_globals,
- 'mgoblin_app': commands_util.setup_app(args),
+ 'mgoblin_app': commands_util.setup_app(args[0]),
'db': mg_globals.database}
- if args.ipython:
+ if args[0].ipython:
ipython_shell(**user_namespace)
else:
# Try ipython_shell first and fall back if not available