diff options
| author | David <265901978+david-x3d@users.noreply.github.com> | 2026-11-23 18:03:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 11:03:56 -0600 |
| commit | 496da204779e93790d1de4fd3d29cd01c0b0c36e (patch) | |
| tree | 073fcdbb10c075514cd692de2e3e9438d25d392d /tools/cf_diff.py | |
| parent | 2c7095ddf55c1cf426e43b5a1d2e92e2d68df685 (diff) | |
Require a program when showing a control-flow listing (#6659)
Squash-merged after diff review of PR #6659
Diffstat (limited to 'tools/cf_diff.py')
| -rw-r--r-- | tools/cf_diff.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cf_diff.py b/tools/cf_diff.py index 12a9dd74d..78f5f54b0 100644 --- a/tools/cf_diff.py +++ b/tools/cf_diff.py | |||
| @@ -619,6 +619,8 @@ def main(argv=None): | |||
| 619 | if not argv: | 619 | if not argv: |
| 620 | ap.error("no arguments given; pass --help for the available options") | 620 | ap.error("no arguments given; pass --help for the available options") |
| 621 | a = ap.parse_args(argv) | 621 | a = ap.parse_args(argv) |
| 622 | if a.show and a.program is None: | ||
| 623 | ap.error("--show requires --program") | ||
| 622 | if a.programs < 1: | 624 | if a.programs < 1: |
| 623 | ap.error("--programs must be at least 1") | 625 | ap.error("--programs must be at least 1") |
| 624 | if a.spirv_val: | 626 | if a.spirv_val: |