[GRASS-dev] G70 annoing error during the command parsing

Pietro peter.zamb at gmail.com
Wed Aug 7 07:12:08 PDT 2013


On Wed, Aug 7, 2013 at 2:58 PM, Anna Petrášová <kratochanna at gmail.com> wrote:
> On Wed, Aug 7, 2013 at 1:39 PM, Pietro <peter.zamb at gmail.com> wrote:
>> I'm trying to write a grass7 add-ons, but I'm fighting with one
>> parameter that wont work... and I'm not able to understand where the
>> problem is...
>>
>> the python code is:
>>
>> {{{
>> ERROR: Sorry <Kchk=K_chk> is not a valid option
>> }}}
>>
>> Do you understand what I'm doing wrong? why is ychk working?
>> I'm using grass r57429
>
>
> It seems that uppercase letters are not allowed for option names, see
> is_option function in parser.c
> http://grass.osgeo.org/programming7/parser_8c_source.html
>
> I guess you have some reason to use uppercase letters but maybe it would
> still be better to use lowercase letters to avoid confusion in the future
> (not to start mixing camelCase and snake_case for example)?

Wow Anna, thank you! I didn't realize that the upper-case was the
problem! I will use the lower-case parameter.

Best regards!

Pietro


More information about the grass-dev mailing list