Commentary on where this hack on detecting no subcommand to Alembic comes from
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 6 Mar 2016 00:28:30 +0000 (16:28 -0800)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 6 Mar 2016 00:28:41 +0000 (16:28 -0800)
mediagoblin/gmg_commands/alembic.py

index 76191876d9589b0395e3e1606cb47785aab31aab..f255af73ff84a9ccf70407bec374cf9d0d87fcc4 100644 (file)
@@ -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"