mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
36bc641648
This is an intermediate solution for #4408. As there were no agreeed upon goals, I went with what I felt read well and that I saw commonly used on non-clap commands. - "information" isn't really a necessary word. - I originally favored `Print this help` but realied that doesn't read correctly in completions. - Besides being shorter, the reason for the flipped short/long hint is it gives people the context they need for scanning, emphasizing "summary" and "more". Fixes #4409
14 lines
696 B
Fish
14 lines
696 B
Fish
complete -c my-app -l choice -r -f -a "{bash ,fish ,zsh }"
|
|
complete -c my-app -l unknown -r
|
|
complete -c my-app -l other -r -f
|
|
complete -c my-app -s p -l path -r -F
|
|
complete -c my-app -s f -l file -r -F
|
|
complete -c my-app -s d -l dir -r -f -a "(__fish_complete_directories)"
|
|
complete -c my-app -s e -l exe -r -F
|
|
complete -c my-app -l cmd-name -r -f -a "(__fish_complete_command)"
|
|
complete -c my-app -s c -l cmd -r -f -a "(__fish_complete_command)"
|
|
complete -c my-app -s u -l user -r -f -a "(__fish_complete_users)"
|
|
complete -c my-app -s H -l host -r -f -a "(__fish_print_hostnames)"
|
|
complete -c my-app -l url -r -f
|
|
complete -c my-app -l email -r -f
|
|
complete -c my-app -s h -l help -d 'Print help'
|