瀏覽代碼

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)
     )