Skip to content

Commit 490ab6e

Browse files
Konrad Piascikkpiascik
authored andcommitted
Change yargs to reject unknown strings as commands
1 parent f8f94c7 commit 490ab6e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bin/magic-script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ require('yargs') // eslint-disable-line
4949
default: false
5050
})
5151
.wrap(null)
52-
.demandCommand()
52+
.demandCommand().recommendCommands().strict()
53+
.showHelpOnFail(true)
5354
.help()
5455
.argv;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "magic-script-cli",
33
"description": "Magic Script Toolkit",
4-
"version": "1.0.3",
4+
"version": "1.0.4",
55
"author": "Magic Leap",
66
"license": "MIT",
77
"bin": {

0 commit comments

Comments
 (0)