From: Christopher Allan Webber Date: Sun, 6 Mar 2016 00:28:30 +0000 (-0800) Subject: Commentary on where this hack on detecting no subcommand to Alembic comes from X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4efa61c16ac8dc9948337fbadae1feb2d774902d;p=mediagoblin.git Commentary on where this hack on detecting no subcommand to Alembic comes from --- diff --git a/mediagoblin/gmg_commands/alembic.py b/mediagoblin/gmg_commands/alembic.py index 76191876..f255af73 100644 --- a/mediagoblin/gmg_commands/alembic.py +++ b/mediagoblin/gmg_commands/alembic.py @@ -27,6 +27,8 @@ from mediagoblin.init import setup_global_and_app_config class FudgedCommandLine(config.CommandLine): def main(self, args, db): options = self.parser.parse_args(args.args_for_alembic) + # This code is inspired by a hack in Alembic, but isn't the same really. + # Regardless, Alembic is Expat licensed. if not hasattr(options, "cmd"): print( "* Only use this command if you know what you are doing! *\n"