continue deduping

This commit is contained in:
Isaac 2023-04-28 12:15:01 -07:00
parent 23f478ce74
commit 9c77ebb016
No known key found for this signature in database
GPG key ID: E69FB5A841448A48

View file

@ -89,9 +89,8 @@ def fish_completion():
'\n# global flags', '\n# global flags',
) + tuple( ) + tuple(
'''complete -c borgmatic -a '%s' -d %s -f''' '''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 action in top_level_parser._actions
for option in action.option_strings
) + ( ) + (
'\n# subparser flags', '\n# subparser flags',
) + tuple( ) + tuple(