<div dir="ltr"><div>Hi,<br><br></div>is there some reason for GRASS parser not checking if the input map exists? It checks if the output map exists and if it it does it ends execution with an error.<br><div><div><div><br></div><div>Having this interface definition (full script attached):<br></div><div><br>#%option G_OPT_R_INPUT<br>#% key: elevation<br>#%end<br>#%option G_OPT_R_OUTPUT<br>#% key: aspect<br>#%end<br><br></div><div>I now get this:<br></div><div><br>$ r.mapcalc "aaa = 1"<br>$ g.list rast m=.<br>aaa<br>$ test_parser_inputs.py elevation=bbb aspect=aaa<br>ERROR: option <aspect>: <aaa> exists.<br>$ test_parser_inputs.py elevation=bbb aspect=ccc<br>('bbb', 'ccc') [i.e., no error]<br><br></div><div>But I would expect to get the error also in the second case:<br></div><div><br>$ test_parser_inputs.py elevation=bbb aspect=ccc<br>ERROR: option <elevation>: <bbb> doesn't exist.<br><br></div><div>Is there some advantage in checking the existence of the input maps and files manually?<br><br></div><div>Vaclav<br></div></div></div></div>