Merge remote branch 'remotes/elrond/refactor/gmg_cf_option'
This commit is contained in:
commit
c0e1a70975
@ -58,6 +58,9 @@ SUBCOMMAND_MAP = {
|
||||
def main_cli():
|
||||
parser = argparse.ArgumentParser(
|
||||
description='GNU MediaGoblin utilities.')
|
||||
parser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help="Config file used to set up environment")
|
||||
|
||||
subparsers = parser.add_subparsers(help='sub-command help')
|
||||
for command_name, command_struct in SUBCOMMAND_MAP.iteritems():
|
||||
|
@ -39,9 +39,6 @@ def import_export_parse_setup(subparser):
|
||||
# TODO: Add default
|
||||
subparser.add_argument(
|
||||
'tar_file')
|
||||
subparser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help='Config file used to set up environment')
|
||||
subparser.add_argument(
|
||||
'--mongodump_path', default='mongodump',
|
||||
help='mongodump binary')
|
||||
|
@ -25,9 +25,7 @@ from mediagoblin.db import migrations
|
||||
|
||||
|
||||
def migrate_parser_setup(subparser):
|
||||
subparser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help="Config file used to set up environment")
|
||||
pass
|
||||
|
||||
|
||||
def _print_started_migration(migration_number, migration_func):
|
||||
|
@ -22,9 +22,7 @@ from mediagoblin.gmg_commands import util as commands_util
|
||||
|
||||
|
||||
def shell_parser_setup(subparser):
|
||||
subparser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help="Config file used to set up environment")
|
||||
pass
|
||||
|
||||
|
||||
SHELL_BANNER = """\
|
||||
|
@ -29,9 +29,6 @@ def adduser_parser_setup(subparser):
|
||||
subparser.add_argument(
|
||||
'email',
|
||||
help="Email to recieve notifications")
|
||||
subparser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help="Config file used to set up environment")
|
||||
|
||||
|
||||
def adduser(args):
|
||||
@ -64,9 +61,6 @@ def makeadmin_parser_setup(subparser):
|
||||
subparser.add_argument(
|
||||
'username',
|
||||
help="Username to give admin level")
|
||||
subparser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help="Config file used to set up environment")
|
||||
|
||||
|
||||
def makeadmin(args):
|
||||
@ -90,9 +84,6 @@ def changepw_parser_setup(subparser):
|
||||
subparser.add_argument(
|
||||
'password',
|
||||
help="Your NEW supersecret word to login")
|
||||
subparser.add_argument(
|
||||
'-cf', '--conf_file', default='mediagoblin.ini',
|
||||
help="Config file used to set up environment")
|
||||
|
||||
|
||||
def changepw(args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user