fix flag showing up for paths
This commit is contained in:
parent
d962376a9d
commit
b4a38d8be9
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def exact_options_completion(action: Action):
|
||||||
args = ' '.join(action.option_strings)
|
args = ' '.join(action.option_strings)
|
||||||
|
|
||||||
if action.metavar in file_metavars or action.dest in file_destinations:
|
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:
|
if action.choices:
|
||||||
return f'''\ncomplete -c borgmatic -f -a '{' '.join(map(str, action.choices))}' -n "__borgmatic_last_arg {args}"'''
|
return f'''\ncomplete -c borgmatic -f -a '{' '.join(map(str, action.choices))}' -n "__borgmatic_last_arg {args}"'''
|
||||||
|
|
Loading…
Reference in a new issue