Open cardil opened 1 year ago
Fixes #445
I'm introducing two functions Run and HandleParseError which allow users to customize the Invocation after it is parsed.
Run
HandleParseError
Invocation
For example:
inv, cmd, err := Parse(stderr, stdout, args) if retcode, doExit := HandleParseError(err, stderr); doExit { return retcode } inv.Stdin = stdin # example customization inv.WorkDir = ".." inv.Dir = "." return Run(inv, cmd)
Fixes #445
I'm introducing two functions
Run
andHandleParseError
which allow users to customize theInvocation
after it is parsed.For example: