Skip to content

Commit

Permalink
fix: Yargs wants flags to be strings (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed Aug 20, 2019
1 parent 6c4d1fc commit 8c093fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/percy-storybook/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function run(argv) {
.default('build_dir', 'storybook-static')
.default('output_format', 'text')
.default('minimum_height', '800')
.default('fail_on_empty', false).argv;
.default('fail_on_empty', 'false').argv;

if (argv.help) {
yargs.showHelp();
Expand All @@ -52,7 +52,7 @@ export async function run(argv) {
debug: argv.debug || debug.enabled,
buildDir: argv.build_dir,
outputFormat: getOutputFormat(argv.output_format),
failOnEmpty: !!argv.fail_on_empty,
failOnEmpty: argv.fail_on_empty === 'true',
};

// Enable debug logging based on options.
Expand Down

0 comments on commit 8c093fc

Please sign in to comment.