<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, 26 Jun 2017 at 13:38 Victor Stinner <<a href="mailto:victor.stinner@gmail.com">victor.stinner@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2017-06-26 21:58 GMT+02:00 Brett Cannon <<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>>:<br>
> I don't see why regrtest isn't the right place for this.<br>
<br>
The current regrest CLI isn't designed for subcommands, and I don't<br>
want to "pollute" regrtest with multiple options for bisect.<br>
Currently, my script has already 4 options:<br>
<br>
haypo@selma$ python3 ~/prog/GIT/misc/python/bisect_test.py --help<br>
usage: bisect_test.py [-h] [-i INPUT] [-o OUTPUT] [-n MAX_TESTS] [-N MAX_ITER]<br>
<br>
optional arguments:<br>
  -h, --help            show this help message and exit<br>
  -i INPUT, --input INPUT<br>
                        Test names produced by --list-tests written into a<br>
                        file. If not set, run --list-tests<br>
  -o OUTPUT, --output OUTPUT<br>
                        Result of the bisection<br>
  -n MAX_TESTS, --max-tests MAX_TESTS<br>
                        Maximum number of tests to stop the bisection<br>
                        (default: 1)<br>
  -N MAX_ITER, --max-iter MAX_ITER<br>
                        Maximum number of bisection iterations (default: 100)<br>
<br>
I really like subcommands, it's a nice way to design complex CLI ;-)<br></blockquote><div><br></div><div>Then I think you answered your own question about whether this should go into regrtest ;) (Unless you want to rewrite regrtest's CLI to support subcommands.)<br></div></div></div>