diff options
author | Brad King <brad.king@kitware.com> | 2021-07-13 13:33:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-13 13:41:26 (GMT) |
commit | 161f1f42d6400f4de85767108c090991c41326fe (patch) | |
tree | 1dff6a4f562c330c67eb67f9b75ea094b73e728d /Source/cmakemain.cxx | |
parent | 00e8292434871887f174cfc1a8b3941abefe4cb1 (diff) | |
download | CMake-161f1f42d6400f4de85767108c090991c41326fe.zip CMake-161f1f42d6400f4de85767108c090991c41326fe.tar.gz CMake-161f1f42d6400f4de85767108c090991c41326fe.tar.bz2 |
Help: Clarify 'cmake --build' signature alternatives
Documentation added by
* commit 4f4f2028b8 (Help: Add documentation for buildPresets and
testPresets, 2021-01-13, v3.20.0-rc1~51^2~7)
* commit 676ecf0d37 (cmake-presets: Add build and test presets,
2020-12-14, v3.20.0-rc1~51^2~6)
used square brackets in the `cmake --build` signature to indicate
non-optional alternatives, which is not a typical convention.
A common convention is to use parentheses instead, but in this
case it is probably clearer to list the two signatures separately.
Fixes: #22413
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index d83183f..1725375 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -600,7 +600,10 @@ int do_build(int ac, char const* const* av) if (dir.empty() && presetName.empty() && !listPresets) { /* clang-format off */ std::cerr << - "Usage: cmake --build [<dir> | --preset <preset>] [options] [-- [native-options]]\n" + "Usage: cmake --build <dir> " + " [options] [-- [native-options]]\n" + " cmake --build --preset <preset>" + " [options] [-- [native-options]]\n" "Options:\n" " <dir> = Project binary directory to be built.\n" " --preset <preset>, --preset=<preset>\n" |