fix flag showing up for paths

This commit is contained in:
Isaac 2023-05-04 23:06:11 -07:00
parent d962376a9d
commit b4a38d8be9
No known key found for this signature in database
GPG Key ID: E69FB5A841448A48
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def exact_options_completion(action: Action):
args = ' '.join(action.option_strings)
if action.metavar in file_metavars or action.dest in file_destinations:
return f'''\ncomplete -c borgmatic -Fr -a '{args}' -n "__borgmatic_last_arg {args}"'''
return f'''\ncomplete -c borgmatic -Fr -n "__borgmatic_last_arg {args}"'''
if action.choices:
return f'''\ncomplete -c borgmatic -f -a '{' '.join(map(str, action.choices))}' -n "__borgmatic_last_arg {args}"'''