#1223: g.mapsets access from menu broken
-----------------------+----------------------------------------------------
 Reporter:  cmbarton   |       Owner:  martinl  
     Type:  defect     |      Status:  assigned 
 Priority:  normal     |   Milestone:  7.0.0    
Component:  wxGUI      |     Version:  svn-trunk
 Keywords:             |    Platform:  MacOSX   
      Cpu:  OSX/Intel  |  
-----------------------+----------------------------------------------------

Comment(by glynn):

 Replying to [comment:2 martinl]:

 > g.mapsets doesn't start from the cli because all parameters are
 optional. Probably we could change this behaviour in GRASS7.

 Note that GRASS 7 intentionally doesn't launch a GUI when all required
 parameters are provided. In 6.x, modules which want to be able to run
 without parameters must skip the call to G_parser() if no parameters are
 given. The problem here is that G_parser() performs some necessary tasks
 even when no options are provided, so it should always be called.

 The real problem is that "required" options have to be marked as optional
 if there are any special cases which eliminate the requirement, e.g. the
 "-l" flag in the case of g.mapsets. Ideally, we should add a mechanism to
 allow such flags to suppress the checking of required options, so that the
 ->required field can be set based upon normal usage rather than a worst-
 case scenario.

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

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to