本文档翻译自:https://docs.conan.io/en/latest/reference/commands/misc/inspect.html

    :::success Warning
    这是一项实验性功能,可能会在将来的发行版中进行重大更改。 :::

    1. $ conan inspect [-h] [-a [ATTRIBUTE]] [-r REMOTE] [-j JSON] [--raw RAW]
    2. path_or_reference

    显示conanfile属性,例如名称,版本和选项。 在本地,本地缓存和远程工作。

    1. positional arguments:
    2. path_or_reference Path to a folder containing a recipe (conanfile.py) or
    3. to a recipe file. e.g., ./my_project/conanfile.py. It
    4. could also be a reference
    5. optional arguments:
    6. -h, --help show this help message and exit
    7. -a [ATTRIBUTE], --attribute [ATTRIBUTE]
    8. The attribute to be displayed, e.g "name"
    9. -r REMOTE, --remote REMOTE
    10. look in the specified remote server
    11. -j JSON, --json JSON json output file
    12. --raw RAW Print just the value of the requested attribute

    Examples:

    1. $ conan inspect zlib/1.2.11@ -a=name -a=version -a=options -a default_options -r=conan-center
    2. name: zlib
    3. version: 1.2.11
    4. options
    5. shared: [True, False]
    6. default_options: shared=False
    1. $ conan inspect zlib/1.2.11@ -a=license -a=url
    2. license: Zlib
    3. url: https://github.com/conan-io/conan-center-index
    1. $ conan inspect zlib/1.2.11@ --raw=settings
    2. ('os', 'arch', 'compiler', 'build_type')

    如果未通过-a定义任何特定属性,则将显示一些默认属性:

    1. $ conan inspect zlib/1.2.11@
    2. name: zlib
    3. version: 1.2.11
    4. url: https://github.com/conan-io/conan-center-index
    5. homepage: https://zlib.net
    6. license: Zlib
    7. author: None
    8. description: A Massively Spiffy Yet Delicately Unobtrusive Compression Library (Also Free, Not to Mention Unencumbered by Patents)
    9. topics: None
    10. generators: cmake
    11. exports: None
    12. exports_sources: ['CMakeLists.txt', 'CMakeLists_minizip.txt', 'minizip.patch']
    13. short_paths: False
    14. apply_env: True
    15. build_policy: None
    16. revision_mode: hash
    17. settings: ('os', 'arch', 'compiler', 'build_type')
    18. options:
    19. fPIC: [True, False]
    20. minizip: [True, False]
    21. shared: [True, False]
    22. default_options:
    23. fPIC: True
    24. minizip: False
    25. shared: False