Skip to content

Commit

Permalink
fix: correct flag numbers parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 18, 2024
1 parent 3ab2d1f commit 167a0bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ const lorem = new LoremIpsum({

program
.name('lorem-ipsum-generator')
.requiredOption('-n, --number <number>', 'number of content', parseInt)
.option('--paginate <number>', 'how many content per folder', parseInt, 1000)
.requiredOption('-n, --number <number>', 'number of content', parseFloat)
.option('--paginate <number>', 'how many content per folder', parseFloat, 1000)
.option('-o, --output <char>', 'output folder', 'content')
.option('--tag-count <number>', '', parseInt, 5)
.option('--category-count <number>', '', parseInt, 3)
.option('--series-count <number>', '', parseInt, 1)
.option('--tag-count <number>', '', parseFloat, 5)
.option('--category-count <number>', '', parseFloat, 3)
.option('--series-count <number>', '', parseFloat, 1)

program.parse()

Expand Down

0 comments on commit 167a0bb

Please sign in to comment.