Skip to content

Commit

Permalink
feat(chore): show up help if no args were passed (#72)
Browse files Browse the repository at this point in the history
* feat: show up help if no args were passed

closes #71

* chore: update warning message

* chore: minor tweak
  • Loading branch information
jamesgeorge007 authored and anikethsaha committed Nov 18, 2019
1 parent 3dd8282 commit 2226057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/docsify
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ require("yargonaut")
.errorsStyle("red.bold");

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

0 comments on commit 2226057

Please sign in to comment.