Skip to content

Commit

Permalink
Fix startup flag bug (#1875)
Browse files Browse the repository at this point in the history
* fix flag bug

* changeset
  • Loading branch information
YaroShkvorets authored Dec 20, 2024
1 parent 2451dbd commit 675a89a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/beige-boxes-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

fix flag startup bug
2 changes: 1 addition & 1 deletion packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default class InitCommand extends Command {
'The --skip-git flag will be removed in the next major version. By default we will stop initializing a Git repository.',
);
}
if ((!fromContract || !spkgPath) && !network && !fromExample) {
if ((fromContract || spkgPath) && !network && !fromExample) {
this.error('--network is required when using --from-contract or --spkg');
}

Expand Down

0 comments on commit 675a89a

Please sign in to comment.