cac icon indicating copy to clipboard operation
cac copied to clipboard

[Feature Request] Pass exit code to `cli.outputHelp()`?

Open spiltcoffee opened this issue 5 years ago • 0 comments

Issue Type

  • [ ] Bug Report
  • [x] Feature Request
  • [ ] Other

Expected

  • That when I manually call cli.outputHelp(), that I can then set the exit code (e.g. to 1).

Actual

  • Calling cli.outputHelp() calls process.exit(0) for me.

Possible Solutions

  • Pass exit code to cli.outputHelp()
  • Stop calling process.exit(0) in cli.outputHelp() (breaking change, though)

Info

  • CAC version: 6.4.2
  • Reproduction link:

spiltcoffee avatar Mar 04 '19 01:03 spiltcoffee