Skip to content

Commit

Permalink
If no action is provided, show help
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb committed Sep 14, 2020
1 parent ee54810 commit 6cf1e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const serve = require("rollup-plugin-serve")

updateNotifier({ pkg }).notify()

const { input } = meow(`
const { input, showHelp } = meow(`
Usage
$ scratcher [build|watch] <source>
Expand Down Expand Up @@ -130,6 +130,6 @@ module.exports = (async () => {
watcher.close()
})
} else {
console.log(chalk.redBright("Invalid action! You can only specify `build` or `watch` as the first parameter."))
showHelp()
}
})()

0 comments on commit 6cf1e19

Please sign in to comment.