Alfred M. Szmidt <[email protected]> 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
