Browse Source

continue deduping

Isaac 2 years ago
parent
commit
9c77ebb016
1 changed files with 1 additions and 2 deletions
  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(