Переглянути джерело

handle typed without default params

Isaac 2 роки тому
батько
коміт
16ac4824a5
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      borgmatic/commands/completion.py

+ 1 - 0
borgmatic/commands/completion.py

@@ -89,6 +89,7 @@ def has_required_param_options(action: Action):
         )
         or '--archive' in action.option_strings
         or action.metavar in ('PATTERN', 'KEYS', 'N')
+        or (action.type is not None and action.default is None)
     )