From ff12ecef347d0fdb29534eb2bc0390cf183c10ba Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 12 Aug 2013 11:13:00 -0500 Subject: 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 --- mediagoblin/gmg_commands/util.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'mediagoblin/gmg_commands/util.py') diff --git a/mediagoblin/gmg_commands/util.py b/mediagoblin/gmg_commands/util.py index 8b057996..63e39ca9 100644 --- a/mediagoblin/gmg_commands/util.py +++ b/mediagoblin/gmg_commands/util.py @@ -17,7 +17,6 @@ from mediagoblin import app import getpass -import argparse def setup_app(args): @@ -39,9 +38,3 @@ def prompt_if_not_set(variable, text, password=False): variable=getpass.getpass(text + u' ') return variable - - -def check_unrecognized_args(args): - if args[1]: - parser = argparse.ArgumentParser() - parser.error('unrecognized arguments: {}'.format(args[1])) -- cgit v1.2.3