 process.on 'SIGUSR2', -> logger.reopenFileStreams()
 
 options =
-  config:
+  config: credentials.enrichCredentials
     project_key: argv.projectKey
     client_id: argv.clientId
     client_secret: argv.clientSecret

  .default('logLevel', 'info')
  .default('logDir', '.')
  .default('timeout', 60000)
  .demand(['projectKey', 'clientId', 'clientSecret'])
  .argv

logger = new Logger

Logger = require './logger'
StockImport = require './stockimport'
SftpHelper = require './sftp'
{ProjectCredentialsConfig} = require 'sphere-node-utils'

argv = require('optimist')
  .usage('Usage: $0 --projectKey [key] --clientId [id] --clientSecret [secret] --file [file] --logDir [dir] --logLevel [level]')
