fish-shell/tests/complete.out
Fabian Homborg 22ce8c23c6 builtin_complete: Allow complete -C something
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_.
2019-04-26 15:02:29 +02:00

16 lines
319 B
Plaintext

####################
# 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