From: Mikhail Bulash Date: Mon, 28 Apr 2025 11:18:14 +0000 (+0200) Subject: always add positionals X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2ffce008317508449de9bd0bce3ff9076c5d90f;p=thirdparty%2Fsqlalchemy%2Falembic.git always add positionals --- diff --git a/alembic/config.py b/alembic/config.py index 47fdb3f8..f1411680 100644 --- a/alembic/config.py +++ b/alembic/config.py @@ -584,9 +584,8 @@ class CommandLine: subparser.add_argument(*args, **opts) # type:ignore for arg in positional: - if arg in self._POSITIONAL_OPTS: - opts = self._POSITIONAL_OPTS[arg] - subparser.add_argument(arg, **opts) # type:ignore + opts = self._POSITIONAL_OPTS.get(arg, {}) + subparser.add_argument(arg, **opts) # type:ignore def _inspect_function(self, fn: CommandFunction) -> tuple[Any, Any, str]: spec = compat.inspect_getfullargspec(fn)