Skip to content

Commit 918a40e

Browse files
committed
Make asinit understand '--help', fixes AssemblyScript#427
1 parent b7c7be1 commit 918a40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/asinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require("path");
44
const colors = require("../cli/util/colors");
55
const version = require("../package.json").version;
66

7-
if (process.argv.length < 3) printHelp();
7+
if (process.argv.length != 3 || process.argv[2] == "--help" || process.argv[2] == "-h") printHelp();
88

99
function printHelp() {
1010
console.log([

0 commit comments

Comments
 (0)