We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78b71af commit 57199fdCopy full SHA for 57199fd
1 file changed
src/cli/index.ts
@@ -5,12 +5,16 @@ import { VersionBumpOptions } from "../version-bump-options";
5
import { helpText } from "./help";
6
import { parseArgs } from "./parse-args";
7
8
+/**
9
+ * @see https://nodejs.org/api/process.html#process_exit_codes
10
+ */
11
enum ExitCode {
12
Success = 0,
- SytaxError = 1,
- RuntimeError = 2,
13
+ FatalError = 1,
14
+ InvalidArgument = 9,
15
}
16
17
+
18
/**
19
* The main entry point of the CLI
20
*
@@ -38,7 +42,7 @@ export async function main(args: string[]): Promise<void> {
38
42
// There was an error parsing the command-line args
39
43
console.error((error as Error).message);
40
44
console.error(helpText);
41
- process.exit(ExitCode.SytaxError);
45
+ process.exit(ExitCode.InvalidArgument);
46
47
48
0 commit comments