[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFC on interface change to apr_getopt_long()

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2000-11-20 22:43:23 CET

> Currently, one must path *both* a short-options string and an array
> of apr_getopt_long_t structures to apr_getopt_long().

There's no redundancy here (short options aren't currently specified
in the long options array), but I suppose we could easily shoehorn
short options into the long options structure by assuming that any
option with a single-character name is a short option.

(Just to be clear, short options and long options are specified
differently on the command line. "-abc" is three short options,
unless -a or -b takes an argument; "--abc" is one long option.)

> I have a feeling the current interface is due to the implementation:

Nope. (I designed the interface, and paid no attention to the planned
Received on Sat Oct 21 14:36:15 2006

This is an archived mail posted to the Subversion Dev mailing list.