Skip to content

Commit

Permalink
fix: Use correct force param
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Apr 29, 2019
1 parent 14d496b commit 385e59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const settingsFile = program.settings ? path.resolve(program.settings) : path.jo
program
.command('update')
.option('-f, --force', 'Force re-generating all schemas', false)
.action(force => {
return update(force).catch(error => {
.action(parent => {
return update(parent.force).catch(error => {
console.error(`Error: ${error.message}`);
process.exit(1);
});
Expand Down

0 comments on commit 385e59b

Please sign in to comment.