lib/config.js
function loadFromOptions(opts) {
  var defCfg = loadDefault()
  var cfg = opts.config ? loadFromFile(opts.config) : loadDefault()

  // Command line config override file loaded config
  for (var k in opts) {
    defCfg.hasOwnProperty(k) && (defCfg[k] !== opts[k] && (cfg[k] = opts[k]))
  }

  return cfg
}
function loadFromOptions(opts) {
  var defCfg = loadDefault()
  var cfg = opts.config ? loadFromFile(opts.config) : loadDefault()

  // Command line config override file loaded config
  for (var k in opts) {
    defCfg.hasOwnProperty(k) && (defCfg[k] !== opts[k] && (cfg[k] = opts[k]))
  }

  return cfg
}
function loadFromOptions ( opts ) { var defCfg = loadDefault ( ) var cfg = opts . config ? loadFromFile ( opts . config ) : loadDefault ( ) // Command line config override file loaded config for ( var k in opts ) { defCfg . hasOwnProperty ( k ) && ( defCfg [ k ] !== opts [ k ] && ( cfg [ k ] = opts [ k ] ) ) } return cfg }
Get HTTP server configuration from command line options.
@param {Object} opts - The command line options.
@return {Object} The HTTP server configuration.
Get HTTP server configuration from command line options .