On Mon, Apr 6, 2015 at 9:03 PM, jean-marie winters <
jean.marie.wint...@gmail.com> wrote:
> I'm trying to write an autocompletion for beets (
> https://github.com/sampsyo/beets).
> It's got a lot of options like: help, play, import, modify ... All these
> options do have secondary options that start with a - .
> Problems is the first major options do not start with - or -- so no short,
> long or old options for the complete command.
> So the question is...
> Is there anyway that this can still be accomplished or is it a lost cause
> to start with?
>
This is certainly possible, check out obnam.fish or duply.fish as examples.
The point is to grep the command line for commands and only then allow the
options suitable for given command.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users