On Sun, Aug 27, 2006 at 03:53:28PM +0200, Axel Liljencrantz wrote: > Problems with this approach: > Get this accepted in all getopt implementations.
seems a lot easier than getting all apps patched. > You don't get the description for of what any completions do, nor do > you know what kind of parameters a switch accepts. So it's a very good > start, far better than nothing, but not everything you need. true, the rest would still need extending the applications, but, i hope, once getopt has these features, and functions to provide the missing pieces as well, people will make use of it, so gradually apps will be patched. consider --help output, that could be combined with that as well, esentially --help and --export-extensions are the same data only in different formats. so if getopt provides a way to input all the necesary data to not only parse options but also know what the arguments are as well as the descriptions, and then automaticly creates --help from that then developers could be motivated to make use of it because it is more convenient than to make sure that --help output is uptodate manually. > In order to add the missing pieces, what you'd want to do is probably > to use the output of 'COMMAND --export-completions' as the base of a > regular completions script, where you can fill in the blanks yourself. true, but it would also be nice to be able to generate completions on the fly, because that's better than nothing. greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix offering: programming, training and administration - anywhere in the world -- pike programmer travelling and working in europe open-steam.org unix system- bahai.or.at iaeste.(tuwien.ac|or).at administrator (caudium|gotpike).org is.schon.org Martin Bähr http://www.iaeste.or.at/~mbaehr/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
