fix rotted comments
This commit is contained in:
parent
ccfdd6806f
commit
d732059979
1 changed files with 4 additions and 3 deletions
|
@ -116,8 +116,9 @@ def has_exact_options(action: Action):
|
||||||
|
|
||||||
def exact_options_completion(action: Action):
|
def exact_options_completion(action: Action):
|
||||||
'''
|
'''
|
||||||
Given an argparse.Action instance, return a completion invocation that forces file completion or options
|
Given an argparse.Action instance, return a completion invocation that forces file completions, options completion,
|
||||||
completion, if the action takes such an argument and was the last action on the command line.
|
or just that some value follow the action, if the action takes such an argument and was the last action on the
|
||||||
|
command line prior to the cursor.
|
||||||
|
|
||||||
Otherwise, return an empty string.
|
Otherwise, return an empty string.
|
||||||
'''
|
'''
|
||||||
|
@ -188,7 +189,7 @@ def fish_completion():
|
||||||
end
|
end
|
||||||
__borgmatic_check_version
|
__borgmatic_check_version
|
||||||
|
|
||||||
function __borgmatic_last_arg --description 'Check if any of the given arguments are the last on the command line'
|
function __borgmatic_last_arg --description 'Check if any of the given arguments are the last on the command line before the cursor'
|
||||||
set -l all_args (commandline -poc)
|
set -l all_args (commandline -poc)
|
||||||
# premature optimization to avoid iterating all args if there aren't enough
|
# premature optimization to avoid iterating all args if there aren't enough
|
||||||
# to have a last arg beyond borgmatic
|
# to have a last arg beyond borgmatic
|
||||||
|
|
Loading…
Reference in a new issue