"bazel help <command>" 中显示的自定义 --config 选项

Custom --config options showing up in "bazel help <command>"

如果我在我的 .bazelrc 中定义自定义 --config 选项,例如

# My custom config
build:my_config --define my_setting=true
build:my_config --define my_other_setting=true

有什么方法可以让它显示在 "bazel help build" 或其他命令中。最好使用某种自定义帮助文本。我认为这将是跟踪构建选项的一个很好的功能。特别是,由于像 tensorflow 这样的项目,想要创建 .bazelrc 配置甚至作为外部依赖。

is there any way to get this to show up in "bazel help build" or some other command

不,不幸的是 Bazel 没有这样的功能。