diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-08-12 11:13:00 -0500 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 15:30:17 -0700 |
commit | ff12ecef347d0fdb29534eb2bc0390cf183c10ba (patch) | |
tree | dd027adea346e60d35383131b380778ce44676cb /mediagoblin/gmg_commands/shell.py | |
parent | 98d1fa3beddfc602c541fe7f538ca882ad6c7e9c (diff) | |
download | mediagoblin-ff12ecef347d0fdb29534eb2bc0390cf183c10ba.tar.lz mediagoblin-ff12ecef347d0fdb29534eb2bc0390cf183c10ba.tar.xz mediagoblin-ff12ecef347d0fdb29534eb2bc0390cf183c10ba.zip |
Revert "use parser.parse_known_args() instead of parser.parse_args()"
This reverts commit 029e779c468ba1a6bfd893679cfaae7f418f45dd.
(and a bit more!)
This wasn't needed anymore because we did a "rest" capture and passed
that over to the reprocess run command.
Conflicts:
mediagoblin/gmg_commands/assetlink.py
mediagoblin/gmg_commands/dbupdate.py
mediagoblin/gmg_commands/import_export.py
mediagoblin/gmg_commands/users.py
Diffstat (limited to 'mediagoblin/gmg_commands/shell.py')
-rw-r--r-- | mediagoblin/gmg_commands/shell.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mediagoblin/gmg_commands/shell.py b/mediagoblin/gmg_commands/shell.py index 03e08b23..4998acd7 100644 --- a/mediagoblin/gmg_commands/shell.py +++ b/mediagoblin/gmg_commands/shell.py @@ -63,13 +63,12 @@ def shell(args): """ Setup a shell for the user either a normal Python shell or an IPython one """ - commands_util.check_unrecognized_args(args) user_namespace = { 'mg_globals': mg_globals, - 'mgoblin_app': commands_util.setup_app(args[0]), + 'mgoblin_app': commands_util.setup_app(args), 'db': mg_globals.database} - if args[0].ipython: + if args.ipython: ipython_shell(**user_namespace) else: # Try ipython_shell first and fall back if not available |