From b8331e08b3b2f2e6acefcddbdba80cb914c543de Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 18 Nov 2019 17:30:14 +0530 Subject: [PATCH 1/3] feat: show up help if no args were passed closes #71 --- bin/docsify | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/docsify b/bin/docsify index 5f29880..a77c771 100755 --- a/bin/docsify +++ b/bin/docsify @@ -18,6 +18,7 @@ require("yargonaut") .errorsStyle("red.bold"); const yargs = require("yargs") + .demandCommand(1, '# Please specify a command') .usage(chalk.bold(y18n.__("usage") + ": docsify ")) .command({ command: "init [path]", From a46a4d22ff5223609e878ad903cb32ac872702d4 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 18 Nov 2019 20:13:03 +0530 Subject: [PATCH 2/3] chore: update warning message --- bin/docsify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/docsify b/bin/docsify index a77c771..30efcca 100755 --- a/bin/docsify +++ b/bin/docsify @@ -18,7 +18,7 @@ require("yargonaut") .errorsStyle("red.bold"); const yargs = require("yargs") - .demandCommand(1, '# Please specify a command') + .demandCommand(1, chalk.red("[ERROR] 0 argument passed. Please specify a command")) .usage(chalk.bold(y18n.__("usage") + ": docsify ")) .command({ command: "init [path]", From cd88aeca728a460d2ccc71ce5f60ccb983708f57 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 18 Nov 2019 20:13:35 +0530 Subject: [PATCH 3/3] chore: minor tweak --- bin/docsify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/docsify b/bin/docsify index 30efcca..6d5e23c 100755 --- a/bin/docsify +++ b/bin/docsify @@ -18,7 +18,7 @@ require("yargonaut") .errorsStyle("red.bold"); const yargs = require("yargs") - .demandCommand(1, chalk.red("[ERROR] 0 argument passed. Please specify a command")) + .demandCommand(1, chalk.red("[ERROR] 0 arguments passed. Please specify a command")) .usage(chalk.bold(y18n.__("usage") + ": docsify ")) .command({ command: "init [path]",