From 377dc9472e53ae4588b0c2f29fb622c9515edbaf Mon Sep 17 00:00:00 2001 From: Mizev Andrew <150728785+carpalsgrabby@users.noreply.github.com> Date: Tue, 25 Nov 2025 08:42:05 +0100 Subject: [PATCH] Add --header-only to just print the table header and exit --- sweep_layouts.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sweep_layouts.py b/sweep_layouts.py index 159ea49..f95093f 100644 --- a/sweep_layouts.py +++ b/sweep_layouts.py @@ -19,6 +19,12 @@ def parse_args() -> argparse.Namespace: choices=["aztec", "zama", "soundness"], help="Commitment style to use.", ) + parser.add_argument( + "--header-only", + action="store_true", + help="Print only the table header and exit.", + ) + parser.add_argument( "--json-summary", action="store_true", @@ -156,6 +162,13 @@ def main() -> None: proof_branch = data.get("proofBranchLength") per_proof_bytes = data.get("perProofBytes") total_commitment_bytes = data.get("totalCommitmentBytes") + if args.header_only: + header = ( + f"{'LEAVES':>10} {'FANOUT':>6} {'HEIGHT':>6} " + f"{'NODES':>12} {'PROOF BYTES':>12} {'TOTAL COMM BYTES':>16}" + ) + print(header) + return rows.append( {