From aeba2bd3187f08e9a280ab4a79010be9f350f47e Mon Sep 17 00:00:00 2001 From: Aruna Herath Date: Tue, 27 Sep 2016 11:17:42 +0530 Subject: [PATCH] Rename ignore to exclude. We already have a -i option for interactive. Now we use -x for exclude tests. --- src/cli.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.js b/src/cli.js index 37a1f6d787d9..6fb6630b9ec4 100644 --- a/src/cli.js +++ b/src/cli.js @@ -17,7 +17,7 @@ program .option('-i, --update-interactive [boolean]', 'Update saved story snapshots interactively') .option('-g, --grep [string]', 'only test stories matching regexp') - .option('-i, --ignore [string]', 'ignore stories matching regexp') + .option('-x, --exclude [string]', 'exclude stories matching regexp') .option('-w, --watch [boolean]', 'watch file changes and rerun tests') .option('--polyfills [string]', 'add global polyfills') .option('--loaders [string]', 'add loaders') @@ -28,7 +28,7 @@ const { polyfills: polyfillsPath = require.resolve('./default_config/polyfills.js'), loaders: loadersPath = require.resolve('./default_config/loaders.js'), grep, - ignore, + exclude, } = program; const configPath = path.resolve(`${configDir}`, 'config'); @@ -72,7 +72,7 @@ async function main() { // We need to polyfill it for the server side. const channel = new EventEmitter(); addons.setChannel(channel); - await runner.run(filterStorybook(storybook, grep, ignore)); + await runner.run(filterStorybook(storybook, grep, exclude)); } catch (e) { console.log(e.stack); }