[GRASS-dev] tcl files in grass7

Martin Landa landa.martin at gmail.com
Sat Jan 3 06:46:41 EST 2009


Hi,

2009/1/3 Markus Neteler <neteler at osgeo.org>:
> On Sat, Jan 3, 2009 at 12:08 PM, Martin Landa <landa.martin at gmail.com> wrote:
>>> I meant stand-alone (since I always call it from cmd line).
>>> If you try g.mapsets -s you see a nice, simple selection box.
>>
>> done in r35180.

there is one small issue, g.mapsets without arguments don't show GUI
dialog. It's because no option is required.

lib/gis/parser.c:

   775      /* If there are NO arguments, go interactive */

   776      if (argc < 2 && st->has_required && !st->no_interactive &&
isatty(0)) {
   777          G_gui();
   778          return -1;
   779      }
   780      else if (argc < 2 && st->has_required && isatty(0)) {
   781          G_usage();
   782          return -1;
   783      }

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list