From 6d81b0f50957561bb9a034535d133d656b7311b6 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 6 Nov 2023 01:59:03 -0600 Subject: [PATCH] Changed --context short flag to -C in scripts This matches diff and grep, and avoids lower-case conflicts in test.py/bench.py. --- scripts/bench.py | 2 +- scripts/cov.py | 2 +- scripts/perf.py | 2 +- scripts/perfbd.py | 2 +- scripts/test.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/bench.py b/scripts/bench.py index f797e198..b4755662 100755 --- a/scripts/bench.py +++ b/scripts/bench.py @@ -1578,7 +1578,7 @@ if __name__ == "__main__": default=3, help="Show this many test failures. Defaults to 3.") bench_parser.add_argument( - '--context', + '-C', '--context', type=lambda x: int(x, 0), default=5, help="Show this many lines of stdout on bench failure. " diff --git a/scripts/cov.py b/scripts/cov.py index da6c63dc..8fa9a3d3 100755 --- a/scripts/cov.py +++ b/scripts/cov.py @@ -805,7 +805,7 @@ if __name__ == "__main__": action='store_true', help="Show uncovered branches.") parser.add_argument( - '-c', '--context', + '-C', '--context', type=lambda x: int(x, 0), default=3, help="Show n additional lines of context. Defaults to 3.") diff --git a/scripts/perf.py b/scripts/perf.py index 3019bf15..c280a4ad 100755 --- a/scripts/perf.py +++ b/scripts/perf.py @@ -1289,7 +1289,7 @@ if __name__ == "__main__": help="Show lines with samples above this threshold as a percent of " "all lines. Defaults to %s." % ','.join(str(t) for t in THRESHOLD)) parser.add_argument( - '-c', '--context', + '-C', '--context', type=lambda x: int(x, 0), default=3, help="Show n additional lines of context. Defaults to 3.") diff --git a/scripts/perfbd.py b/scripts/perfbd.py index ec8c9624..a46c8210 100755 --- a/scripts/perfbd.py +++ b/scripts/perfbd.py @@ -1274,7 +1274,7 @@ if __name__ == "__main__": help="Show lines with erases above this threshold as a percent of " "all lines. Defaults to %s." % ','.join(str(t) for t in THRESHOLD)) parser.add_argument( - '-c', '--context', + '-C', '--context', type=lambda x: int(x, 0), default=3, help="Show n additional lines of context. Defaults to 3.") diff --git a/scripts/test.py b/scripts/test.py index 492dcaf8..20f69144 100755 --- a/scripts/test.py +++ b/scripts/test.py @@ -1592,7 +1592,7 @@ if __name__ == "__main__": default=3, help="Show this many test failures. Defaults to 3.") test_parser.add_argument( - '--context', + '-C', '--context', type=lambda x: int(x, 0), default=5, help="Show this many lines of stdout on test failure. "