index.js
function setValue(option, value){
		
		// Assign the value only to the option name it matched
		if(noAliasPropagation){
			let name = option.lastMatchedName;
			
			// Special alternative:
			// In lieu of using the matched option name, use the first --long-name only
			if("first-only" === noAliasPropagation)
				name = option.longNames[0] || option.shortNames[0];
			
			// camelCase?
			name = formatName(name, noCamelCase);
			
			// This option's already been set before
			if(result.options[name])
				resolveDuplicate(option, name, value);
			
			else result.options[name] = value;
		}
		
		// Copy across every alias this option's recognised by
		else{
			const {names} = option;
			
			for(let name of names){
				
				// Decide whether to camelCase this option name
				name = formatName(name, noCamelCase);
				
				// Ascertain if this option's being duplicated
				if(result.options[name])
					resolveDuplicate(option, name, value);
				
				result.options[name] = value;
			}
		}
	}
function setValue(option, value){
		
		// Assign the value only to the option name it matched
		if(noAliasPropagation){
			let name = option.lastMatchedName;
			
			// Special alternative:
			// In lieu of using the matched option name, use the first --long-name only
			if("first-only" === noAliasPropagation)
				name = option.longNames[0] || option.shortNames[0];
			
			// camelCase?
			name = formatName(name, noCamelCase);
			
			// This option's already been set before
			if(result.options[name])
				resolveDuplicate(option, name, value);
			
			else result.options[name] = value;
		}
		
		// Copy across every alias this option's recognised by
		else{
			const {names} = option;
			
			for(let name of names){
				
				// Decide whether to camelCase this option name
				name = formatName(name, noCamelCase);
				
				// Ascertain if this option's being duplicated
				if(result.options[name])
					resolveDuplicate(option, name, value);
				
				result.options[name] = value;
			}
		}
	}
function setValue ( option , value ) { // Assign the value only to the option name it matched if ( noAliasPropagation ) { let name = option . lastMatchedName ; // Special alternative: // In lieu of using the matched option name, use the first --long-name only if ( "first-only" === noAliasPropagation ) name = option . longNames [ 0 ] || option . shortNames [ 0 ] ; // camelCase? name = formatName ( name , noCamelCase ) ; // This option's already been set before if ( result . options [ name ] ) resolveDuplicate ( option , name , value ) ; else result . options [ name ] = value ; } // Copy across every alias this option's recognised by else { const { names } = option ; for ( let name of names ) { // Decide whether to camelCase this option name name = formatName ( name , noCamelCase ) ; // Ascertain if this option's being duplicated if ( result . options [ name ] ) resolveDuplicate ( option , name , value ) ; result . options [ name ] = value ; } } }
Assign an option's parsed value to the result's `.options` property
Assign an option s parsed value to the result s . options property