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 2451dbd commit 675a89aCopy full SHA for 675a89a
.changeset/beige-boxes-punch.md
@@ -0,0 +1,5 @@
1
+---
2
+'@graphprotocol/graph-cli': patch
3
4
+
5
+fix flag startup bug
packages/cli/src/commands/init.ts
@@ -143,7 +143,7 @@ export default class InitCommand extends Command {
143
'The --skip-git flag will be removed in the next major version. By default we will stop initializing a Git repository.',
144
);
145
}
146
- if ((!fromContract || !spkgPath) && !network && !fromExample) {
+ if ((fromContract || spkgPath) && !network && !fromExample) {
147
this.error('--network is required when using --from-contract or --spkg');
148
149
0 commit comments