markfinal / cruiz

Conan recipe user interface
https://cruiz.readthedocs.io/
Apache License 2.0
11 stars 1 forks source link

Options with [None, "ANY"] do not recognize the None as a default #22

Closed markfinal closed 1 year ago

markfinal commented 1 year ago

As per https://docs.conan.io/en/1.53/reference/conanfile/attributes.html#options

When an option uses "ANY", but its default value is None, then it should be added to the possible option values too.

the dock does not recognise None being the default so 1) it does not render initially correctly 2) setting it to None is treated as a non-default value in the settings, so passed to command lines unnecessarily

An empty string does seem to work in place of None, but is it obvious?