add more justification to checks
This commit is contained in:
parent
a047f856a1
commit
c8f4344f89
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ def fish_completion():
|
||||||
# -n is checked in order, so put faster / more likely to be true checks first
|
# -n is checked in order, so put faster / more likely to be true checks first
|
||||||
f'''complete -c borgmatic -f -n "$exact_option_condition" -a '{' '.join(action.option_strings)}' -d {shlex.quote(action.help)}{exact_options_completion(action)}'''
|
f'''complete -c borgmatic -f -n "$exact_option_condition" -a '{' '.join(action.option_strings)}' -d {shlex.quote(action.help)}{exact_options_completion(action)}'''
|
||||||
for action in top_level_parser._actions
|
for action in top_level_parser._actions
|
||||||
|
# ignore the noargs action, as this is an impossible completion for fish
|
||||||
if len(action.option_strings) > 0
|
if len(action.option_strings) > 0
|
||||||
if 'Deprecated' not in action.help
|
if 'Deprecated' not in action.help
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue