cmd-ts icon indicating copy to clipboard operation
cmd-ts copied to clipboard

Public option to parse arguments without calling handler?

Open everett1992 opened this issue 4 years ago • 2 comments

I'd like to write regression tests for my command to test how arguments are parsed, required, and how the help message prints.

I see run, runSafely, and dryRun but all three call the handler.

everett1992 avatar Jul 22 '21 21:07 everett1992

Was also looking at this, and am wondering if you found any solution. I opened a PR in https://github.com/Schniz/cmd-ts/pull/154 with a quick solution to this.

ldub avatar May 17 '22 05:05 ldub

@ldub It would be great if we exposed the type for ParsingResult.

samtsai avatar May 30 '23 14:05 samtsai