mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
Make asinit understand '--help', fixes #427
This commit is contained in:
parent
b7c7be1fe9
commit
918a40eb7d
@ -4,7 +4,7 @@ const path = require("path");
|
||||
const colors = require("../cli/util/colors");
|
||||
const version = require("../package.json").version;
|
||||
|
||||
if (process.argv.length < 3) printHelp();
|
||||
if (process.argv.length != 3 || process.argv[2] == "--help" || process.argv[2] == "-h") printHelp();
|
||||
|
||||
function printHelp() {
|
||||
console.log([
|
||||
|
Loading…
x
Reference in New Issue
Block a user