From 65cde4f5a948aa4e41d055c0908a3a33548623ed Mon Sep 17 00:00:00 2001 From: Sasha Sorokin Date: Wed, 25 Sep 2019 19:20:46 +0400 Subject: [PATCH] feat: enable strict mode for yargs (#13) --- bin/cli.js | 1 + bin/cmds/docker.js | 1 + bin/cmds/test.js | 1 + 3 files changed, 3 insertions(+) diff --git a/bin/cli.js b/bin/cli.js index a66572f..01efb70 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -56,4 +56,5 @@ require('yargs') }) .config(config) .help() + .strict() .argv; diff --git a/bin/cmds/docker.js b/bin/cmds/docker.js index 6a53576..00bfba7 100644 --- a/bin/cmds/docker.js +++ b/bin/cmds/docker.js @@ -28,6 +28,7 @@ exports.builder = (yargs) => ( default: './Dockerfile', normalize: true, }) + .strict() .help() ); exports.handler = (argv) => { diff --git a/bin/cmds/test.js b/bin/cmds/test.js index 337591d..9684d3c 100644 --- a/bin/cmds/test.js +++ b/bin/cmds/test.js @@ -135,6 +135,7 @@ exports.builder = (yargs) => ( string: true, default: '', }) + .strict() .help() ); exports.handler = () => {};