Skip to content

Commit 181de61

Browse files
committed
feat(command): show package manager version and help
1 parent 4b28bee commit 181de61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bin/napy.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ cli
4343
}
4444
}
4545

46+
if (args.includes('-v') || args.includes('--version')) {
47+
log(`napy/${pkg.version}`);
48+
}
49+
4650
if (isYarn) {
4751
log(`> yarn ${args.join(' ')}`);
4852
execa(`yarn`, args, { stdio: 'inherit' });
@@ -72,7 +76,4 @@ cli
7276
}
7377
});
7478

75-
cli.help();
76-
cli.version(pkg.version);
77-
7879
cli.parse();

0 commit comments

Comments
 (0)