[GRASS-dev] [GRASS GIS] #1778: Typing in g.region without parameters does not open a g.region window

GRASS GIS trac at osgeo.org
Tue Sep 3 03:58:51 PDT 2013


#1778: Typing in g.region without parameters does not open a g.region window
----------------------------------------+-----------------------------------
 Reporter:  pvanbosgeo                  |       Owner:  grass-dev@…              
     Type:  defect                      |      Status:  new                      
 Priority:  normal                      |   Milestone:  7.0.0                    
Component:  Default                     |     Version:  svn-trunk                
 Keywords:  g.region, r.colors, r.mask  |    Platform:  Linux                    
      Cpu:  x86-64                      |  
----------------------------------------+-----------------------------------

Comment(by martinl):

 Replying to [comment:20 cmbarton]:

 > A flag (-ui) can be added to any module to ensure it launches a GUI, but
 is only necessary for a few modules. AFAICT, this behavior is not
 documented anywhere (run g.region help or look in the manual for GRASS). I
 tend to think that 'secret' behavior of any interface element is not a
 good idea from the user perspective--even if the secret is inadvertent and
 logical from other perspectives.

 the attached patch attachment:force_gui.diff adds '--ui' to the help
 printed by the parser (see example below). I agree that this switch is not
 documented well, even it's not noted in the `g.parser`'s help page.

 {{{
 Description:
  Displays user-specified raster map in the active graphics frame.

 Keywords:
  display, graphics, raster

 Usage:
  d.rast [-ni] map=name [values=value[-value][,value[-value],...]]
    [bgcolor=color] [--verbose] [--quiet] [--ui]

 Flags:
   -n   Make null cells opaque
   -i   Invert value list
  --v   Verbose module output
  --q   Quiet module output
  --ui  Force GUI dialog to come up

 Parameters:
       map   Name of raster map to be displayed
    values   List of categories or values to be displayed
   bgcolor   Background color (for null)
              Either a standard color name or R:G:B triplet
             default: white
 }}}

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



More information about the grass-dev mailing list