This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: How to create both -option-name-* and -option-name=* options?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: 'Brooks Moses' <brooks dot moses at codesourcery dot com>, gcc at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Fri, 10 Nov 2006 13:12:30 -0800
- Subject: Re: How to create both -option-name-* and -option-name=* options?
- Organization: CodeSourcery, Inc.
- References: <03a901c70509$63dad9c0$a501a8c0@CAM.ARTIMI.COM>
Dave Korn wrote:
> On 10 November 2006 20:06, Mark Mitchell wrote:
>
>> Dave Korn wrote:
>>
>>> It may seem a bit radical, but is there any reason not to modify the
>>> option-parsing machinery so that either '-' or '=' are treated
>>> interchangeably for /all/ options with joined arguments? That is,
>>> whichever is specified in the .opt file, the parser accepts either?
>> I like that idea.
>
>
> Would it be a suitable solution to just provide a specialised wrapper around
> the two strncmp invocations in find_opt?
FWIW, that seems reasonable to me, but I've not looked hard at the code
to be sure that's technically 100% correct. It certainly seems like the
right idea.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713