From 4efa61c16ac8dc9948337fbadae1feb2d774902d Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 5 Mar 2016 16:28:30 -0800 Subject: [PATCH] Commentary on where this hack on detecting no subcommand to Alembic comes from --- mediagoblin/gmg_commands/alembic.py | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.25.1