conan-io / docs

conan.io reStructuredText documentation
http://docs.conan.io
MIT License
104 stars 352 forks source link

how to inspect recipe options with conan2? #3129

Open AndreyMlashkin opened 1 year ago

AndreyMlashkin commented 1 year ago

conan inspect qt/6.4.2@ ERROR: Conanfile not found at C:\Users\andrei\qt\6.4.2@ PS C:\Users\andrei> conan -v Conan version 2.0.2

Please, add the section to the documentation

AbrilRBS commented 1 year ago

Hi! Thanks for the request. Getting information about a recipe can be made in a few ways, depending on your needs: If you need to inspect the local fields of the recipe, https://docs.conan.io/2/reference/commands/inspect.html will output such info, and further filtering can be then applied to extract the options.

If you have a graph dependency and want to know which options are applied to a particular dependency, https://docs.conan.io/2/reference/commands/graph/info.html will evaluate the dependency graph and display the info aftewards.

If you feel that there's more info you feel we should include, please do let us know :)