Wolfgang Jaehrling <[EMAIL PROTECTED]> writes:

> On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> > It is hard to write a nice parser.
> [...]
> > The syntax would be:
> > console {OPTIONS} {-d DRIVER [suboptions]} CONSOLE
> 
> I can not see how this solves the problem that it is hard to write a
> nice parser.  The suboptions-variant has the disadvantage of
> destroying the consistency of the user interface.  A better solution
> might be to provide an replacement for argp in the console client that
> can be used by drivers, so that only once a nice parser needs to be
> written (though it might even be possible to use existing code from
> somewhere).  Another solution is to use one of the commandline parser
> generators out there, though I do not know whether they are good
> enough for you/us.

Break the consistency? I think it only improves, with this it is
easier to see to which driver an option belongs, it all gets grouped.

Perhaps an argp replacement or a small library would be nice. One
problem is that the small options of the driver and of the console can
conflict...

I don't know any (good) commandline parser generators. If you know one
that is really good and can help me, please tell me.

Thanks,
Marco



_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to