Browse Source

handle typed without default params

Isaac 2 years ago
parent
commit
16ac4824a5
1 changed files with 1 additions and 0 deletions
  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 '--archive' in action.option_strings
         or action.metavar in ('PATTERN', 'KEYS', 'N')
         or action.metavar in ('PATTERN', 'KEYS', 'N')
+        or (action.type is not None and action.default is None)
     )
     )