* Patches the `exit()` method of the parser to throw an error, so we can handle it manually.
(parser: ArgumentParser)
| 147 | * Patches the `exit()` method of the parser to throw an error, so we can handle it manually. |
| 148 | */ |
| 149 | private static _patchExit(parser: ArgumentParser): void { |
| 150 | parser.exit = (code, msg) => { |
| 151 | if (code) { |
| 152 | throw new Error(msg); |
| 153 | } |
| 154 | process.exit(); |
| 155 | }; |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Adds the `server` subcommand parser and returns its argument definitions. |
no outgoing calls
no test coverage detected