summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@backtick.net>2025-06-23 15:23:05 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-11-18 08:32:28 -0800
commitf78d575b4cb23a3ad5fe1dab5fe17c702d90ddce (patch)
tree775e9e20f361995b6c1bb0ed3aa097f72116b60b
parent45021c8da83a1f21f8b3d42deac1d4e1c3808e52 (diff)
downloadmeson-f78d575b4cb23a3ad5fe1dab5fe17c702d90ddce.tar.gz
rewriter: fix CLI help recommending invalid function IDs for project
The project ID must be "/" and cannot be an arbitrary string.
-rw-r--r--mesonbuild/rewriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py
index 4c2fb11bc..8caa6b8d4 100644
--- a/mesonbuild/rewriter.py
+++ b/mesonbuild/rewriter.py
@@ -54,7 +54,7 @@ def add_arguments(parser: ArgumentParser, formatter: _FormatterClass) -> None:
help='Action to execute')
kw_parser.add_argument('function', choices=list(rewriter_func_kwargs.keys()),
help='Function type to modify')
- kw_parser.add_argument('id', help='ID of the function to modify (can be anything for "project")')
+ kw_parser.add_argument('id', help='ID of the function to modify (must be "/" for "project")')
kw_parser.add_argument('kwargs', nargs='*', help='Pairs of keyword and value')
# Default options