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

Diff options

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-09-04 17:55:31 CEST


Working away at being able to pass options to diff, and have come into a
(small) problem. Because of the way apr_getopt works, we either need to
enumerate every option that could be passed to diff, or we need to set
our apr_getopt_t's err field to 0, and handle APR_BADCH. This implies that
APR will no longer handle invalid options for us.

My idea was to follow the second approach, adding an UNKNOWN_OPTIONS variable
to each subcommand's svn_cl__cmd_desc_t. Then after we have determined the
subcommand, we error out if that subcommand doesn't expect unknown options.

Does this sound reasonable?

Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:39 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.