<div dir="ltr"><div><div><div>Hi<br><br></div>I would personaly use the second : add a new property for each input. If not given, this means the input is mandatory, if "opt" is present, make it optionnal.<br><br></div>Cheers,<br></div>Michael<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-28 14:53 GMT+02:00 RenĂ©-Luc Dhont <span dir="ltr"><<a href="mailto:rldhont@gmail.com" target="_blank">rldhont@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Victor,<br>
<br>
I'm working on porting QGIS Processing to Web Processing Service, and I have found that all parameters in a QGIS Processing script are mandatory.<br>
It would be useful to power define some parameters as optional.<br>
<br>
I think that I can propose some code but I'd like to know what is your preferred way of defining optional parameters :<br>
* an header line started by 'optional' with a list of parameter name separated by comma<br>
##optional=SEGMENTS,DISTANCE<br>
* an extra value at the end of the header line<br>
##SEGMENTS=number 5 opt<br>
<br>
Thanks<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>