summaryrefslogtreecommitdiff
path: root/mesonbuild/rewriter.py
diff options
context:
space:
mode:
authorLuke Elliott <luke.b.elliott@gmail.com>2023-09-11 07:37:51 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2023-11-01 00:06:19 +0200
commitce691f8c98aeb72a246c4d6e9d60ed9ec88a6afd (patch)
treeaff73382e0588159fae2d28cf46342438e0b91cf /mesonbuild/rewriter.py
parent99fadccd29c709e652f0fab5b5738fadfc4a2ebe (diff)
downloadmeson-ce691f8c98aeb72a246c4d6e9d60ed9ec88a6afd.tar.gz
Add comments suggesting to keep shell completion scripts up-to-date near cmd line argument code
Diffstat (limited to 'mesonbuild/rewriter.py')
-rw-r--r--mesonbuild/rewriter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py
index a86b97ecc..d6509fc97 100644
--- a/mesonbuild/rewriter.py
+++ b/mesonbuild/rewriter.py
@@ -38,6 +38,8 @@ if T.TYPE_CHECKING:
class RewriterException(MesonException):
pass
+# Note: when adding arguments, please also add them to the completion
+# scripts in $MESONSRC/data/shell-completions/
def add_arguments(parser, formatter=None):
parser.add_argument('-s', '--sourcedir', type=str, default='.', metavar='SRCDIR', help='Path to source directory.')
parser.add_argument('-V', '--verbose', action='store_true', default=False, help='Enable verbose output')