[GRASS-dev] Re: [GRASS GIS] #102: new tabs in GUI have required last

GRASS GIS trac at osgeo.org
Thu Mar 20 08:51:38 EDT 2008

#102: new tabs in GUI have required last
  Reporter:  cmbarton  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  major     |   Milestone:  6.3.0                    
 Component:  Tcl       |     Version:  svn-trunk                
Resolution:            |    Keywords:                           
Comment (by hamish):

 Replying to [comment:4 glynn]:
 > Replying to [comment:1 hamish]:
 > > For r.colors, v.in.ascii the input can come from stdin which is why
 > > input filenames are not required by the parser, although piping to
 stdin isn't
 > > really an option from a GUI window.
 > I suggest modifying the parser so that "-" is always accepted for
 > options.
 > Providing incorrect type information so that "-" works is a rather ugly

 What I was trying to get at was the modules work like "if input file is
 NULL, assume input comes from stdin". I don't think those modules actually
 have code to deal with input=-, they will treat that as a filename not
 something special. Some modules do recognize that trick, for consistency's
 sake I suppose all that can read from stdin should, and if the parser
 needs to be aware of that then so be it.

 And AFAIK the parser does not actually check to see if an "old,file"
 option's answer actually exists. It leaves that to the module. All it
 provides is the folder file picker GUI. (Same is true for cell, vector,
 group, ... elements)    (??)

 So the type isn't being dropped to accomodate 'oldfile=-', ->required is
 being dropped to accomodate "if input file is NULL, assume input comes
 from stdin".

 not sure if we're talking about the same thing here...


Ticket URL: <http://trac.osgeo.org/grass/ticket/102#comment:7>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

More information about the grass-dev mailing list