Hi Ken, > Bakul wrote: > > May be the current -help option of most commands with some post > > processing is good enough? > > I have thought about that ... but AFAIK we have never committed that > the "help" output be stable. Really, I think a few extra switches > would make it a lot easier AND we could commit to long-term stability.
I'm confused. We already install an etc/bash_completion_nmh that's built from the options listed in the man pages. I think completion solutions could continue to revolve around us producing and installing. Separate to completion, there's the issue of a non-nmh program being able to accept all of an nmh's program's options and add some of its own, hopefully without clashing. Whether an nmh option takes an argument or not is the issue? That could be obtained from a new option to every command, or it could be built and installed as a defined-format data file. Ideally something simple to use from a Bourne-shell script, e.g. a look-up with keys `scan' and `-for' would fail, `scan' and `-forma' would indicate one further word needed, meaning `format-string'. This would probably mean having the possible expansions, e.g. `-forma' and `-format', present so the script isn't doing the labour. I'm not convinced of a need, but I expect there's others out there that have fought nmh over this. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy -- Nmh-workers https://lists.nongnu.org/mailman/listinfo/nmh-workers