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

GRASS GIS trac at osgeo.org
Tue Nov 25 06:29:22 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 annakrat):

 Replying to [comment:25 martinl]:
 > Replying to [comment:24 martinl]:
 > > Do we prefer to leave as it is or change to
 > >
 > > {{{
 > > background_color
 > > }}}
 > >
 > > ?
 > >
 > > Then it can be abbreviated to
 > >
 > > {{{
 > > bcolor
 > > }}}
 > >
 > > but not to
 > >
 > > {{{
 > > bgcolor
 > > }}}
 >

 In this case I would keep bgcolor, I don't think we have to unabbreviate
 everything just for the sake of consistency and in this case as you show,
 the abbrevated versions are not really suitable, unless Glynn implements
 the new mechanism, which I think would be confusing.

 > The attachment:renamed_options.diff adds to the parser support for
 renamed options. Eg.
 >
 > {{{
 > d.erase bgcolor=black
 > }}}
 >
 > will continue to work with appropriate warning
 >
 > {{{
 > WARNING: Please update the interface of the module: option <bgcolor> has
 been renamed to <background_color> in GRASS 7.0
 > }}}
 >
 > Make sense to you?

 This is great, I haven't tested it yet, but it will be very useful.

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



More information about the grass-dev mailing list