From aac1a11b30761d2b37edb3f47ae346d5edf9341b Mon Sep 17 00:00:00 2001 From: James Date: Mon, 6 Sep 2021 09:20:55 +0200 Subject: [PATCH] docs for &: as option specifier of consumer (#2214) --- 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**,