upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/cf_diff.py
diff options
context:
space:
mode:
authorKam471 <115741199+Kam471@users.noreply.github.com>2026-11-22 21:06:33 +0000
committerKam471 <115741199+Kam471@users.noreply.github.com>2026-11-22 21:06:33 +0000
commite37e6e136fff8d0504cdda8242d063576a487378 (patch)
treeaf1fe1b759d31018cb1de1e3c6e02cab64ea58d0 /tools/cf_diff.py
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
cf_diff/f32_fuzz: print usage and exit 2 with no arguments
Diffstat (limited to 'tools/cf_diff.py')
-rw-r--r--tools/cf_diff.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/cf_diff.py b/tools/cf_diff.py
index 70d144753..93f22965f 100644
--- a/tools/cf_diff.py
+++ b/tools/cf_diff.py
@@ -598,6 +598,10 @@ def main(argv=None):
598 ap.add_argument("--spirv-val", action="store_true", 598 ap.add_argument("--spirv-val", action="store_true",
599 help="also run spirv-as and spirv-val on every translation (a failure counts as a mismatch)") 599 help="also run spirv-as and spirv-val on every translation (a failure counts as a mismatch)")
600 ap.add_argument("--self-test", action="store_true") 600 ap.add_argument("--self-test", action="store_true")
601 if argv is None:
602 argv = sys.argv[1:]
603 if not argv:
604 ap.error("no arguments given; pass --help for the available options")
601 a = ap.parse_args(argv) 605 a = ap.parse_args(argv)
602 if a.spirv_val: 606 if a.spirv_val:
603 missing = [t for t in ("spirv-as", "spirv-val") if not shutil.which(t)] 607 missing = [t for t in ("spirv-as", "spirv-val") if not shutil.which(t)]