Skip to content

Commit

Permalink
Fixed verbose stripe migrate output
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBackx committed Mar 12, 2024
1 parent 4baecdb commit d1f44e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mg-stripe/src/lib/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Options {
desc: 'Print debug output (optional)'
},
{
type: 'number',
type: 'boolean',
flags: '--verbose -v',
defaultValue: false,
desc: 'Print verbose output (optional)'
Expand All @@ -61,7 +61,7 @@ export class Options {

constructor(argv: any) {
this.dryRun = argv['dry-run'];
this.verboseLevel = argv['very-verbose'] ? 2 : argv.verbose ? 1 : 0;
this.verboseLevel = argv['very-verbose'] ? 2 : (argv.verbose ? 1 : 0);
this.oldApiKey = argv.from ?? undefined;
this.newApiKey = argv.to ?? undefined;
this.debug = argv.debug ?? false;
Expand Down

0 comments on commit d1f44e5

Please sign in to comment.