Skip to content

Commit 97d286f

Browse files
committed
fix flag bug
1 parent 2451dbd commit 97d286f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/commands/init.ts

Lines changed: 1 addition & 1 deletion
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)