Merge remote-tracking branch 'elrond/for-schendje'
[mediagoblin.git] / mediagoblin / gmg_commands / __init__.py
index 4a608a695d92e963cbc082348630e00746c5bb2a..e965dd5730a5c7ace3e7d4b62098be16455bb5d9 100644 (file)
@@ -50,6 +50,11 @@ SUBCOMMAND_MAP = {
         'setup': 'mediagoblin.gmg_commands.mongosql:mongosql_parser_setup',
         'func': 'mediagoblin.gmg_commands.mongosql:mongosql',
         'help': 'Convert Mongo DB data to SQL DB data'},
+    'theme': {
+        'setup': 'mediagoblin.gmg_commands.theme:theme_parser_setup',
+        'func': 'mediagoblin.gmg_commands.theme:theme',
+        'help': 'Theming commands',
+        }
 
     ## These might be useful, mayyyybe, but don't really work anymore
     ## due to mongo change and the "versatility" of sql options.
@@ -93,6 +98,7 @@ def main_cli():
         subparser.set_defaults(func=exec_func)
 
     args = parser.parse_args()
+    args.orig_conf_file = args.conf_file
     if args.conf_file is None:
         if os.path.exists('mediagoblin_local.ini') \
                 and os.access('mediagoblin_local.ini', os.R_OK):