mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
22ce8c23c6
This is a long-standing issue with how `complete --do-complete` does its argument parsing: It takes an optional argument, so it has to be attached to the token like `complete --do-complete=foo` or (worse) `complete -Cfoo`. But since `complete` doesn't take any bare arguments otherwise (it would error with "too many arguments" if you did `complete -C foo`) we can just take one free argument as the argument to `--do-complete`. It's more of a command than an option anyway, since it entirely changes what the `complete` call _does_.
15 lines
319 B
Text
15 lines
319 B
Text
|
|
####################
|
|
# Completion Wrappers
|
|
complete_test_alpha1 arg1
|
|
complete_test_alpha1 extra1 arg2
|
|
complete_test_alpha1 extra1 extra2 arg3
|
|
complete_test_alpha1 extra1 extra2 arg3
|
|
|
|
####################
|
|
# Alias Completions
|
|
arg1 call1
|
|
arg2 call2
|
|
complete_test_alpha1 arg1 call3
|
|
complete_test_alpha1 arg2 call3
|
|
t
|