[GRASS-dev] [GRASS GIS] #2409: last call for options keys consolidation

GRASS GIS trac at osgeo.org
Thu Dec 18 05:19:20 PST 2014


#2409: last call for options keys consolidation
----------------------------------+-----------------------------------------
 Reporter:  martinl               |       Owner:  grass-dev@…              
     Type:  task                  |      Status:  new                      
 Priority:  blocker               |   Milestone:  7.0.0                    
Component:  Default               |     Version:  unspecified              
 Keywords:  standardized options  |    Platform:  Unspecified              
      Cpu:  Unspecified           |  
----------------------------------+-----------------------------------------

Comment(by glynn):

 Replying to [comment:131 hcho]:

 > * modules with parameters `raster_map=` and `raster_map_2=`: `rast`
 ambiguous, `rmap` for `raster_map=` and `rmap2` for `raster_map_2=`
 >
 > * modules with parameters `raster_map=` and `raster_map2=`: `rast`
 ambiguous, `rmap` for `raster_map=` and `rmap2` for `raster_map2=`
 >
 > I'm not sure if I was clear enough here.

 You're suggesting that the abbreviation must include some part of the last
 word of the option name? Or that it must include the last character? I.e.
 is rm= ambiguous?

 The main problems I foresee with that are

  * The last word (or an abbreviation of it) might match some earlier
 portion of the option name, meaning that the user intended to specify
 (part of) the last word but the characters were matched against an earlier
 portion.

  * It's possible for a string to match the last word of multiple options.
 E.g. given options raster_map and raster_2_map, rmap would match both
 equally.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2409#comment:133>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list