[GRASS-dev] Re: [GRASS GIS] #1444: g.parser does not filter for duplicate output map statements

GRASS GIS trac at osgeo.org
Thu Sep 8 04:45:27 EDT 2011


#1444: g.parser does not filter for duplicate output map statements
---------------------+------------------------------------------------------
 Reporter:  neteler  |       Owner:  grass-dev@…              
     Type:  defect   |      Status:  new                      
 Priority:  minor    |   Milestone:  6.4.2                    
Component:  LibGIS   |     Version:  6.4.1                    
 Keywords:  parser   |    Platform:  All                      
      Cpu:  All      |  
---------------------+------------------------------------------------------

Comment(by glynn):

 Replying to [comment:2 hamish]:

 > It would seem that by design (at least in 6.5) if you use a command line
 parameter more than once the parser concatenates them together with ',' as
 the f.sep.:

 Correct; this feature has existed since forever, but isn't widely known.
 It can be useful in conjunction with e.g. xargs, as generating multiple
 options is easier than trying to glue the values together into a single
 option.

 > if the particular option does not allow multiple="YES", you get an
 error.
 >
 > perhaps a way to handle this is for the parser to be more upfront about
 scanning for illegal map names &/or if multiple=NO?

 Try r48205 (7.0).

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1444#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list