Skip to content

Commit babae62

Browse files
authored
Fix --same-loops flag in compile subprocess invocation (#475)
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.
1 parent 92747ed commit babae62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyperformance/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def run_benchmark(self, python=None):
571571
if self.conf.debug:
572572
cmd.append("--debug-single-value")
573573
if self.conf.same_loops:
574-
cmd.append("--same_loops=%s" % self.conf.same_loops)
574+
cmd.append("--same-loops=%s" % self.conf.same_loops)
575575
if self.conf.rigorous:
576576
cmd.append("--rigorous")
577577
exitcode = self.run_nocheck(*cmd)

0 commit comments

Comments
 (0)