[GRASS-dev] [GRASS GIS] #2136: Create standard options for map or file base name (prefix)
GRASS GIS
trac at osgeo.org
Sun Sep 7 07:08:44 PDT 2014
#2136: Create standard options for map or file base name (prefix)
-----------------------------------------+----------------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.0.0
Component: Parser | Version: svn-releasebranch64
Keywords: base name, prefix, basename | Platform: All
Cpu: All |
-----------------------------------------+----------------------------------
Comment(by wenzeslaus):
Replying to [comment:26 martinl]:
> BTW, both G_OPT_BASENAME_INPUT and G_OPT_BASENAME_OUTPUT has the same
key - `basename`. Wouldn't be better to use `basename_input` and
`basename_output`? Let's imagine a module which will use both
parameters...
I think that's OK. I think that basename as input will be a rare case. For
`t.*` you use dataset name (and basename as optional for output maps),
generally you use list of maps (no basenames usually involved), and
finally, most of the examples we have now has only the output basename
(e.g., `r.texture`). The rare cases can always change it. But if you
insist on `basename_output`, I can see why, it would be more explicit and
also consistent with `output`.
We can have a look to comment:5 and `t.*` modules how this would work in
practice.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2136#comment:28>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list