9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
13 lines
580 B
Diff
13 lines
580 B
Diff
diff --git a/migrate/versioning/shell.py b/migrate/versioning/shell.py
|
|
index 5fb86b1..fae0ce4 100644
|
|
--- a/migrate/versioning/shell.py
|
|
+++ b/migrate/versioning/shell.py
|
|
@@ -108,7 +108,7 @@ def main(argv=None, **kwargs):
|
|
parser.error("Invalid command %s" % command)
|
|
|
|
parser.set_usage(inspect.getdoc(command_func))
|
|
- f_args, f_varargs, f_kwargs, f_defaults = inspect.getargspec(command_func)
|
|
+ f_args, f_varargs, f_kwargs, f_defaults, _, _, _ = inspect.getfullargspec(command_func)
|
|
for arg in f_args:
|
|
parser.add_option(
|
|
"--%s" % arg,
|