Skip to content

Commit 2226057

Browse files
jamesgeorge007anikethsaha
authored andcommitted
feat(chore): show up help if no args were passed (#72)
* feat: show up help if no args were passed closes #71 * chore: update warning message * chore: minor tweak
1 parent 3dd8282 commit 2226057

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/docsify

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ require("yargonaut")
1818
.errorsStyle("red.bold");
1919

2020
const yargs = require("yargs")
21+
.demandCommand(1, chalk.red("[ERROR] 0 arguments passed. Please specify a command"))
2122
.usage(chalk.bold(y18n.__("usage") + ": docsify <init|serve> <path>"))
2223
.command({
2324
command: "init [path]",

0 commit comments

Comments
 (0)