瀏覽代碼

continue deduping

Isaac 2 年之前
父節點
當前提交
9c77ebb016
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      borgmatic/commands/completion.py

+ 1 - 2
borgmatic/commands/completion.py

@@ -89,9 +89,8 @@ def fish_completion():
             '\n# global flags',
         ) + tuple(
             '''complete -c borgmatic -a '%s' -d %s -f'''
-            % (option, shlex.quote(action.help))
+            % (' '.join(action.option_strings), shlex.quote(action.help))
             for action in top_level_parser._actions
-            for option in action.option_strings
         ) + (
             '\n# subparser flags',
         ) + tuple(