Re: parser option handling
Stefan Seefeld <[email protected]> Sun, 06 May 2007 07:48:49 -0400
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Bernhard Fischer wrote:
>>> AttributeError: 'str' object has no attribute 'append'
>> That's an interesting error. It is caused by you passing 'cppflags'
>> explicitely (as a string), and then adding to it (where it is assumed
>> cppflags is a list). I have to think about how to prevent that. I guess
>> such mixed usage of both 'cppflags' as well as '-D' etc. is rather uncommon.
>
> if type(cppflags) is not ListType:
> error('cppflags is not a list\n')
I don't think that's very useful either, as users wouldn't be able to
connect that information back to their use of the synopsis applet.
May be "please don't use both 'cppflags' as well as '-D'" or something
like that ?
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...