14 lines
580 B
Diff
14 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,
|