Skip to content

Commit 675a89a

Browse files
authoredDec 20, 2024··
Fix startup flag bug (#1875)
* fix flag bug * changeset
1 parent 2451dbd commit 675a89a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/beige-boxes-punch.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
fix flag startup bug

‎packages/cli/src/commands/init.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class InitCommand extends Command {
143143
'The --skip-git flag will be removed in the next major version. By default we will stop initializing a Git repository.',
144144
);
145145
}
146-
if ((!fromContract || !spkgPath) && !network && !fromExample) {
146+
if ((fromContract || spkgPath) && !network && !fromExample) {
147147
this.error('--network is required when using --from-contract or --spkg');
148148
}
149149

0 commit comments

Comments
 (0)
Please sign in to comment.