summaryrefslogtreecommitdiffstatshomepage
path: root/project/format.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-05 15:06:59 +0500
committerEgor Tensin <egor@tensin.name>2026-10-05 15:06:59 +0500
commit3bdc6e6f533c293068cac62b5b77060d937784de (patch)
treecc461aafd9ba4114597063457b460f5e3cba89e9 /project/format.py
parentproject.format: refactoring (diff)
downloadcmake-common-7.0.0.tar.gz
cmake-common-7.0.0.zip
project.{ctest_driver,format}: add --version parameterv7.0.0
Diffstat (limited to 'project/format.py')
-rw-r--r--project/format.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/project/format.py b/project/format.py
index cfd8d98..eeb3d6e 100644
--- a/project/format.py
+++ b/project/format.py
@@ -16,6 +16,7 @@ import os
import sys
from project import utils
+import project.version
class ClangFormat:
@@ -136,6 +137,8 @@ def parse_args(argv=None):
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
)
+ project.version.add_to_arg_parser(parser)
+
parser.add_argument(
"-b",
"--clang-format",