       .usage '--projectKey <project-key> --clientId <client-id> --clientSecret <client-secret> --mapping <file> --config [file] --products <file>'
       .action (opts) ->
 
+        validateGlobalOpts(opts, CONS.CMD_IMPORT_PRODUCTS_UPDATES)
         logger = createLogger(opts)
 
         if opts.parent.config # use SFTP to load import/export files
-          validateOpt(opts.parent.mapping, 'mapping', CONS.CMD_IMPORT_PRODUCTS_UPDATES)
           loadResources(opts, logger)
           .then (resources) ->
             importer = new ProductUpdates resources.options

            logger.error error.stack if error.stack
            @exitCode = 1
        else # use command line arguments to load import/export files
          validateGlobalOpts(opts, CONS.CMD_IMPORT_ORDERS_STATUS)
          validateOpt(opts.status, 'status', CONS.CMD_IMPORT_ORDERS_STATUS)

          options = createBaseOptions(opts, logger)

      .usage '--projectKey <project-key> --clientId <client-id> --clientSecret <client-secret> --mapping <file> --config [file] --status <file> --createStates'
      .action (opts) ->

        validateGlobalOpts(opts, CONS.CMD_IMPORT_ORDERS_STATUS)
        logger = createLogger(opts)

        if opts.parent.config # use SFTP to load import/export files
          loadResources(opts, logger)
          .then (resources) ->
            resources.options.createstates = opts.createStates
