

Fair point, autoexpect does take the typing out of it. It still records one session that you drive yourself though. What I wanted was the step before that: read the tool’s --help, try lots of flag combinations and odd inputs on its own, and keep hundreds of cases without me deciding each one. Then replay them against the rewrite. For a few interactive flows, autoexpect is probably the better tool.







Fair enough. Before writing it I looked at expect/autoexpect and the usual golden-test tools, and none of them generated the cases from --help and the man page or diffed a second binary against the recording, which was the part I needed. If there is an existing tool that does that, I’d honestly like to know, I’d rather use it than maintain my own.