Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Untitled diff

Created Diff never expires
4 removals
29 lines
5 additions
30 lines
var appc = require('node-appc'),
var appc = require('node-appc'),
windowslib = require('windowslib'),
windowslib = require('windowslib'),
__ = appc.i18n(__dirname).__;
__ = appc.i18n(__dirname).__;


/**
/**
* Defines the --vs-target option.
* Defines the --vs-target option.
*
*
* @param {Number} order - The order to apply to this option.
* @param {Number} order - The order to apply to this option.
*
*
* @returns {Object}
* @returns {Object}
*/
*/
module.exports = function configOptionVisualStudioTarget(order) {
module.exports = function configOptionVisualStudioTarget(order) {
var defaultTarget = this.windowsInfo.selectedVisualStudio ? this.windowsInfo.selectedVisualStudio.version : undefined;
var defaultTarget = (this.windowsInfo && this.windowsInfo.selectedVisualStudio) ? this.windowsInfo.selectedVisualStudio.version : undefined;


var vsTargets = [];
var vsTargets = [];
for (var version in this.windowsInfo.visualstudio) {
if (this.windowsInfo) {
vsTargets.push(version);
for (var version in this.windowsInfo.visualstudio) {
vsTargets.push(version);
}
}
}

return {
return {
abbr: 'V',
abbr: 'V',
default: defaultTarget,
default: defaultTarget,
desc: __('the Visual Studio target to build for'),
desc: __('the Visual Studio target to build for'),
order: order,
order: order,
required: true,
required: true,
values: vsTargets
values: vsTargets
};
};
};
};