Re: [PATCH 1/2] parse_options: Add flag to prevent errors for further processing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn Bohrer
Date: Thursday, June 19, 2008 - 7:25 am

On Wed, Jun 18, 2008 at 11:52:42AM -0700, Junio C Hamano wrote:

It seems to me that you could implement Jeff's
PARSE_OPT_STOP_AT_UNKNOWN, and then if multiple option parsers are
needed you would simply loop over parse_options for each of the
commands, waiting for argc to stop changing.  Of course Jeff's flag
would also need to stop parse_options from eating the first argument.
Is this sort of what you are suggesting Junio?

--
Shawn
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] convert shortlog to use parse_options, Shawn Bohrer, (Tue Jun 17, 8:03 pm)
[PATCH 2/2] git shortlog: Modify to use parse_options, Shawn Bohrer, (Tue Jun 17, 8:03 pm)
Re: [PATCH 1/2] parse_options: Add flag to prevent errors ..., Johannes Schindelin, (Wed Jun 18, 9:50 am)
Re: [PATCH 1/2] parse_options: Add flag to prevent errors ..., Shawn Bohrer, (Thu Jun 19, 7:25 am)
Re: [PATCH 1/2] parse_options: Add flag to prevent errors ..., Pierre Habouzit, (Sun Jun 22, 10:07 am)
Re: [PATCH 1/2] parse_options: Add flag to prevent errors ..., Johannes Schindelin, (Sun Jun 22, 12:07 pm)
Re: [PATCH 1/2] parse_options: Add flag to prevent errors ..., Johannes Schindelin, (Mon Jun 23, 1:24 pm)