[GRASS-dev] [GRASS GIS] #2579: Specify command to be exectued as parameter of grass command
GRASS GIS
trac at osgeo.org
Wed May 20 11:16:10 PDT 2015
#2579: Specify command to be exectued as parameter of grass command
--------------------------+----------------------------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Startup | Version: svn-trunk
Resolution: | Keywords: batch job, GRASS_BATCH_JOB, init
CPU: Unspecified | Platform: All
--------------------------+----------------------------------------------
Comment (by wenzeslaus):
In r65294 I changed `exec` to `--exec`. This follows general long flag
syntax which is already partially used in `grass.py`. I think it will be
better to leave the "subcommand syntax" for the actual implementation of
it. So now we have:
{{{
grass71 ~/grassdata/nc_spm_08_grass7/user1/ --exec g.region -p
}}}
The only alternative would be to go with majority there and use short
flags, for example `-x` (`-e` is already taken for //exit after creating
mapset//). But I'm not adding it because it should be primary used in
script and programming and there you should use long flags anyway.
It would be possible to go just with the short flags, as we do now with
`-c`, `-e` and `-f` but this would go against the general trend of
readability and I expect that we might change it in the future as we
already support `--version`, `--config` and also all GUI selection flags
can be used with two dashes.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2579#comment:14>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list