@@ -349,15 +349,15 @@ consistent implementation take into account these considerations:
349
349
- equals ``False `` for the values ``False ``, ``"False" `` and ``"false" ``, also for the empty
350
350
string and for ``0 `` and ``"0" `` as expected.
351
351
352
- - Comparaison using ``is `` is always equals to ``False `` because the types would be different as
352
+ - Comparison using ``is `` is always equals to ``False `` because the types would be different as
353
353
the option value is encapsulated inside a Conan class.
354
354
355
- - Explicit comparaisons with the ``== `` symbol **are case sensitive **, so:
355
+ - Explicit comparisons with the ``== `` symbol **are case sensitive **, so:
356
356
357
357
- ``self.options.option = "False" `` satisfies ``assert self.options.option == False ``,
358
358
``assert self.options.option == "False" ``, but ``assert self.options.option != "false" ``.
359
359
360
- - A different behaviour has ``self.options.option = None ``, because
360
+ - A different behavior has ``self.options.option = None ``, because
361
361
``assert self.options.option != None ``.
362
362
363
363
@@ -366,21 +366,21 @@ consistent implementation take into account these considerations:
366
366
default_options
367
367
---------------
368
368
369
- As you have seen in the examples above, recipe's default options can be assigned to the desired value. However, you can also specify
370
- default option values of the required dependencies:
369
+ As you have seen in the examples above, recipe's default options are declared as a dictionary and can be assigned an initial desired value.
370
+ However, you can also specify default option values of the required dependencies:
371
371
372
372
.. code-block :: python
373
373
374
374
class OtherPkg (ConanFile ):
375
375
requires = " Pkg/0.1@user/channel"
376
- default_options = " Pkg:pkg_option= value"
376
+ default_options = { " Pkg:pkg_option" : " value" }
377
377
378
378
And it also works with default option values of conditional required dependencies:
379
379
380
380
.. code-block :: python
381
381
382
382
class OtherPkg (ConanFile ):
383
- default_options = " Pkg:pkg_option= value"
383
+ default_options = { " Pkg:pkg_option" : " value" }
384
384
385
385
def requirements (self ):
386
386
if self .settings.os != " Windows" :
0 commit comments