docs
authortnagy1024 <tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85>
Wed, 12 Jan 2011 08:14:25 +0000 (08:14 +0000)
committertnagy1024 <tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85>
Wed, 12 Jan 2011 08:14:25 +0000 (08:14 +0000)
git-svn-id: https://waf.googlecode.com/svn/trunk@10840 f0382ac9-c320-0410-b3f0-b508d59f5a85

waflib/Configure.py

index 91c760a1f58211bbe34a6d6cf176e9f1a760c5fb..15709a2bcd88fb961b9509b5e22d5bd57a0f316a 100644 (file)
@@ -361,7 +361,12 @@ class ConfigurationContext(Context.Context):
 
 def conf(f):
        """
-       Decorator: attach new configuration functions to :py:class:`waflib.Build.BuildContext` and :py:class:`waflib.Configure.ConfigurationContext`
+       Decorator: attach new configuration functions to :py:class:`waflib.Build.BuildContext` and
+       :py:class:`waflib.Configure.ConfigurationContext`. The methods bound will accept a parameter
+       named 'mandatory' to disable the configuration errors::
+
+               def configure(conf):
+                       conf.find_program('abc', mandatory=False)
 
        :param f: method to bind
        :type f: function