Explorar o código

handle typed without default params

Isaac %!s(int64=2) %!d(string=hai) anos
pai
achega
16ac4824a5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)
     )