aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ctest_driver.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-06 00:09:18 +0500
committerEgor Tensin <egor@tensin.name>2026-10-06 00:09:18 +0500
commitf2f9caddd1c0a5f065741e4d9bb5afcaf86d678c (patch)
tree585e29f8a75826b5c4742a853ef9c3f0e9dde3a7 /project/ctest_driver.py
parentproject.ctest_driver: fix if no regexes (diff)
downloadcmake-common-f2f9caddd1c0a5f065741e4d9bb5afcaf86d678c.tar.gz
cmake-common-f2f9caddd1c0a5f065741e4d9bb5afcaf86d678c.zip
consistent argparse.add_argument formatting
Diffstat (limited to 'project/ctest_driver.py')
-rw-r--r--project/ctest_driver.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/project/ctest_driver.py b/project/ctest_driver.py
index c78e6f1..c3157e1 100644
--- a/project/ctest_driver.py
+++ b/project/ctest_driver.py
@@ -156,7 +156,9 @@ def parse_args(argv=None):
help="launch child process in a new console window",
)
parser_run.add_argument(
- "exe_path", metavar="PATH", help="path to the test executable"
+ "exe_path",
+ metavar="PATH",
+ help="path to the test executable",
)
# nargs='*' here would discard additional '--'s.
parser_run.add_argument(
@@ -186,7 +188,11 @@ def parse_args(argv=None):
metavar="REGEX",
help="fail if any of these regexes matches",
)
- parser_grep.add_argument("path", metavar="PATH", help="text file path")
+ parser_grep.add_argument(
+ "path",
+ metavar="PATH",
+ help="text file path",
+ )
parser_grep.set_defaults(func=action_grep)
args = parser.parse_args(argv)