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

GRASS GIS trac at osgeo.org
Thu Dec 25 03:56:00 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:169 glynn]:

 > My intention is to modify the code which calls match_option()
 (set_option() and check_string()) to record which options are matched. If
 one option is a prefix of all of the others, the string will be considered
 to unambiguously match that option. If the match is ambiguous, we now have
 a list of which options matched, which can be used for the error message.

 This change is implemented in r63744.

 Currently, an ambiguous match for an option key lists the matches, but an
 ambiguous match for a value (opt->options) doesn't (as the error message
 is generated by the caller).

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



More information about the grass-dev mailing list