     parser = new (require('argparse').ArgumentParser)(
       description: 'extract volume and read count'
     )
-    parser.addArgument ['-start-date'],
+    parser.addArgument ['--start-date'],
       help: 'start date'
       required: true
       dest: 'startDate'
-    parser.addArgument ['-end-date'],
+    parser.addArgument ['--end-date'],
       help: 'end date'
       required: true
       dest: 'endDate'
-    parser.addArgument ['-composite-index'],
+    parser.addArgument ['--composite-index'],
       help: 'composite index file'
       required: true
       dest: 'compositeIndex'
-    parsre.addArgument ['-bulletin-data'],
+    parser.addArgument ['--bulletin-data'],
       help: 'bulletin data file'
       required: true
       dest: 'bulletinData'
-    parser.addArgument ['-stock-feed'],
+    parser.addArgument ['--stock-feed'],
       help: 'stock feed directory'
       required: true
       dest: 'stockFeed'
-    parser.addArgument ['-output'],
+    parser.addArgument ['--output'],
       help: 'output directory'
       required: true
     args = parser.parseArgs()

    compositeIndex = JSON.parse data
    Q.nfcall fs.readFile, location.bulletinDataFile, encoding: 'ascii'
    .then (data) ->
    parser.bulletin.f JSON.parse(data)
    .then (bulletinData) ->
      dateRange = utils.weekDayRange startDate, endDate
      Q.all _.map(compositeIndex, (symbol) ->

        .then parser.stockFeed.f
        .then (stockFeedData) ->
          symbolBulletin = bulletinData[symbol]
          pairedData = []
          _.forEach dateRange, (date) ->
            readCount = symbolBulletin[date]?.readCount ? pairedData[pairedData.length - 1]?.readCount ? 0
            volume = stockFeedData[date]?.volume ? pairedData[pairedData.length - 1]?.volume ? 0
            pairedData.push
              date: date
              readCount: readCount
              volume: volume
          csv = _.map pairedData, (line) -> "#{line.readCount},#{line.volume}"
            .join '\n'
          Q.nfcall fs.writeFile, path.join(location.outputDir, "#{symbol}.csv"), csv, encoding: 'ascii'
      )

if require.main == module
