I believe there is already a bug report for this.

On 12/17/2010 08:38 PM, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Strategy for parameter validation?
> Author: jgreer
> Link to topic: https://cfengine.com/forum/read.php?3,19826,19826#msg-19826
> 
> On multiple occasions, I've accidentally passed incorrect parameters to a 
> body, bundle or function - either an incorrect number of parameters or an 
> invalid option from a set (a recent example: passing "shell", rather than 
> "useshell" or "noshell" to returnszero()).  Cfengine does not generate 
> warnings or errors on these cases, and in many cases, I wish it had done so.
> 
> My question is, should I be reporting these as bugs?  What should we expect 
> to be validated by the parser and what are we responsible for sanity-checking 
> ourselves?
> 
> Thanks,
> -Jessica
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to