I'm having trouble creating a completion for a subcommand with it's own
arguments.
thecommand help [topic1|topic2|topic3]
complete -c thecommand -n '__fish_use_subcommand' -a help -d 'get help on
subcommand'
complete -c thecommand -n '__fish_seen_subcommand_from help' -a 'topic1 topic2
topic3' -d "sub-command topic"
The problem is that autocompletion now wants to include all the help topics
with the possible sub-commnand completions.
i.e.
thecommand <hit tab here>
# The returned completions are "help topic1 topic2 topic3", it should only be
"help"
How do I make it so that "topic1 topic2 topic3" doesn't show until "help" is on
the command line?
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users