From a28e7e7f5f1832cbba017932d29e457cdc4d57fe Mon Sep 17 00:00:00 2001 From: memsharded Date: Fri, 3 Sep 2021 14:36:41 +0200 Subject: [PATCH] docs for &: as option specifier of consumer --- reference/commands/consumer/install.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reference/commands/consumer/install.rst b/reference/commands/consumer/install.rst index 99ace4d8559..098f56bc702 100644 --- a/reference/commands/consumer/install.rst +++ b/reference/commands/consumer/install.rst @@ -324,6 +324,10 @@ With the :command:`-o` parameters you can only define specific package options. # you can also apply the same options to many packages with wildcards: $ conan install . -o *:shared=True +**Experimental:** To define an option just for the consumer conanfile.py use :command:`-o &:shared=True` syntax. +If `&` is specified as the package name it will apply only to the consumer conanfile.py. This is a special case +because the consumer conanfile might not declare a `name` so it would be impossible to reference it. + .. note:: You can use :ref:`profiles ` files to create predefined sets of **settings**,