<div dir="ltr">Hi Nikos,<div><br><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 3, 2013 at 11:19 AM, Nikos Alexandris <span dir="ltr"><<a href="mailto:nik@nikosalexandris.net" target="_blank">nik@nikosalexandris.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is it possible to define a series of flags -cl -ch -mi -ma for a bash shell<br>


grass script, that g.parser will understand?<br>
<br>
Is it "recommended" to use only 1-byte characters as flags?<br>
<br></blockquote><div>I don't think so. But maybe the option with type string and options defined would be what you can use?</div><div><br></div><div>Citing from r.in.wms script:<br></div><div><div>#%option</div><div>

#% key: driver</div><div>#% type:string</div><div>#% description: Driver used to communication with server</div><div>#% descriptions: WMS_GDAL;Download data using GDAL WMS driver;WMS_GRASS;Download data using native GRASS-WMS driver;WMTS_GRASS;Download data using native GRASS-WMTS driver;OnEarth_GRASS;Download data using native GRASS-OnEarth driver;</div>

<div>#% options:WMS_GDAL, WMS_GRASS, WMTS_GRASS, OnEarth_GRASS</div><div>#% answer:WMS_GRASS</div><div>#% guisection: Connection</div><div>#%end</div></div><div><br></div><div>It could be more clearer than flags. </div><div>

<br></div><div>If g.parser supports that, there is a lot of bugs in GRASS... However, the documentation shows that Flag structure key attribute is only char (so one ascii character/byte):</div><div><br></div><div><a href="http://grass.osgeo.org/programming7/structFlag.html">http://grass.osgeo.org/programming7/structFlag.html</a><br>

</div><div><br></div><div>Try to define two byte flag, maybe it even triggers an error message.</div><div><br></div><div>Vaclav</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


Thank you, Nikos<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div></div></div>