bin/cmd.js
function detectUserOptions () {
	let outputPath = program.output;
	let userOptions = {
		output: false
	};

	cliProps.forEach(prop => {
		let value = program[prop];

		if ((prop === 'stream' || prop === 'langdetect') && value) {
			return;
		}
		if (value !== undefined) {
			userOptions[prop] = value;
		}
	});
	if (typeof outputPath === 'string' && outputPath.length) {
		userOptions.output = outputPath;
	}
	return userOptions;
}
function detectUserOptions () {
	let outputPath = program.output;
	let userOptions = {
		output: false
	};

	cliProps.forEach(prop => {
		let value = program[prop];

		if ((prop === 'stream' || prop === 'langdetect') && value) {
			return;
		}
		if (value !== undefined) {
			userOptions[prop] = value;
		}
	});
	if (typeof outputPath === 'string' && outputPath.length) {
		userOptions.output = outputPath;
	}
	return userOptions;
}
function detectUserOptions ( ) { let outputPath = program . output ; let userOptions = { output : false } ; cliProps . forEach ( prop => { let value = program [ prop ] ; if ( ( prop === 'stream' || prop === 'langdetect' ) && value ) { return ; } if ( value !== undefined ) { userOptions [ prop ] = value ; } } ) ; if ( typeof outputPath === 'string' && outputPath . length ) { userOptions . output = outputPath ; } return userOptions ; }
Detect user's specified properties
@returns {Object}
@private
@sourceCode
Detect user s specified properties