We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41aa784 commit d0ebfd5Copy full SHA for d0ebfd5
.changeset/curly-toes-dress.md
@@ -0,0 +1,5 @@
1
+---
2
+'@codeshift/cli': patch
3
4
+
5
+Fixed bug where --version & --help are presented as errors
packages/cli/src/index.ts
@@ -124,7 +124,10 @@ program.exitOverride();
124
await program.parseAsync(process.argv);
125
} catch (error) {
126
if (error instanceof CommanderError) {
127
- if (error.message === '(outputHelp)') {
+ if (
128
+ error.code === 'commander.helpDisplayed' ||
129
+ error.code === 'commander.version'
130
+ ) {
131
return;
132
}
133
0 commit comments