scripts/afterPrepareHook.js
function processConsoleOptions(ctx) {
  var consoleOptions = ctx.opts.options;

  // If we are using Cordova 5.3.3 or lower - arguments are array of strings.
  // Will be removed after some time.
  if (consoleOptions instanceof Array) {
    return processConsoleOptions_cordova_53(consoleOptions);
  }

  // for newer version of Cordova - they are an object of properties
  return processConsoleOptions_cordova_54(consoleOptions);
}
function processConsoleOptions(ctx) {
  var consoleOptions = ctx.opts.options;

  // If we are using Cordova 5.3.3 or lower - arguments are array of strings.
  // Will be removed after some time.
  if (consoleOptions instanceof Array) {
    return processConsoleOptions_cordova_53(consoleOptions);
  }

  // for newer version of Cordova - they are an object of properties
  return processConsoleOptions_cordova_54(consoleOptions);
}
function processConsoleOptions ( ctx ) { var consoleOptions = ctx . opts . options ; // If we are using Cordova 5.3.3 or lower - arguments are array of strings. // Will be removed after some time. if ( consoleOptions instanceof Array ) { return processConsoleOptions_cordova_53 ( consoleOptions ) ; } // for newer version of Cordova - they are an object of properties return processConsoleOptions_cordova_54 ( consoleOptions ) ; }
Read arguments from console.
We are reading only plugin-related preferences.

@param {Object} ctx - cordova context object
@return {Object} parsed arguments; if none were provided - default options are returned
Read arguments from console . We are reading only plugin - related preferences .