bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] regarding route


From: Sergey Poznyakoff
Subject: Re: [bug-inetutils] regarding route
Date: Thu, 26 Nov 2009 15:39:22 +0200

Alfred M. Szmidt <address@hidden> ha escrit:

> argp doesn't require it that way

The only way to implement cascaded parsers in argp is by using
argp_child pointers. The only way to implement parsers of extended
command line syntax (be it "weirdo" or not), is by getting the index of
first non-option argument via the fifth argument to argp_parse and
analyzing it afterwards. In both cases, argp gives no alternatives.

> What I had in mind was more of a shell script

In my opinion, that's awkward.

> or whatever that accepts the platform specific 
> syntax, and has something machine readable to processes before
> printing it to the user.

Do you envision this "whatever" to be an external wrapper program
which constructs the new command line and invokes the proper
utility, or some kind of a library call that does the command line
translation prior to invoking argp_parse?

Regards,
Sergey





reply via email to

[Prev in Thread] Current Thread [Next in Thread]