From 918a40eb7dea1f14a0a95c2739dec29773ac5d76 Mon Sep 17 00:00:00 2001 From: dcode Date: Sat, 26 Jan 2019 12:40:42 +0100 Subject: [PATCH] Make asinit understand '--help', fixes #427 --- bin/asinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/asinit b/bin/asinit index c0d77e49..5d6bdd70 100644 --- a/bin/asinit +++ b/bin/asinit @@ -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([