Skip to content

Commit b46a707

Browse files
jamesgeorge007anikethsaha
authored andcommitted
fix(chore): warn on unknown commands and command recommendation (#74)
* fix: warn on unknown commands * feat: suggest matching commands
1 parent 1e93b0c commit b46a707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/docsify

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ require("yargonaut")
1919

2020
const yargs = require("yargs")
2121
.demandCommand(1, chalk.red("[ERROR] 0 arguments passed. Please specify a command"))
22+
.strict()
23+
.recommendCommands()
2224
.usage(chalk.bold(y18n.__("usage") + ": docsify <init|serve> <path>"))
2325
.command({
2426
command: "init [path]",

0 commit comments

Comments
 (0)