From 29449ea857b414a11f98d036a2e993c0bb4f4065 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Tue, 26 May 2026 23:01:31 +0200 Subject: [PATCH] Fix --same-loops flag in compile subprocess invocation When the compile subcommand spawns a "pyperformance run" subprocess, it constructs --same_loops on the command line where argparse only accepts --same-loops. Change the flag to use the hyphenated form. --- pyperformance/compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyperformance/compile.py b/pyperformance/compile.py index c96dc4e0..c1ffe06d 100644 --- a/pyperformance/compile.py +++ b/pyperformance/compile.py @@ -571,7 +571,7 @@ def run_benchmark(self, python=None): if self.conf.debug: cmd.append("--debug-single-value") if self.conf.same_loops: - cmd.append("--same_loops=%s" % self.conf.same_loops) + cmd.append("--same-loops=%s" % self.conf.same_loops) if self.conf.rigorous: cmd.append("--rigorous") exitcode = self.run_nocheck(*cmd)