Skip to content

Commit

Permalink
Correctly parse argv flags as boolean. Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Jun 11, 2014
1 parent d443a65 commit d7385b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coffee/run.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ JSZip = require 'jszip'
{ProductTypeGenerator} = require '../main'

argv = require('optimist')
.usage('Usage: $0 --types [CSV] --attributes [CSV] --target [folder] --retailer [boolean]')
.usage('Usage: $0 --types [CSV] --attributes [CSV] --target [folder] --retailer --zip --zipFileName [name]')
.alias('types', 't')
.alias('attributes', 'a')
.alias('target', 'td')
.alias('retailer', 'r')
.default('retailer', false)
.default('zip', false)
.boolean('retailer')
.boolean('zip')
.default('zipFileName', 'generated-product-types')
.describe('types', 'Path to product types CSV file.')
.describe('attributes', 'Path to product type attributes CSV file.')
Expand Down

0 comments on commit d7385b9

Please sign in to comment.