index.js
function getParams(optlist){
	var aliases = {};
	var known = {};
	
	Object.keys(optlist).forEach(function(key) {
		var short = optlist[key].short;
		if (short) {
			aliases[short] = '--' + key;
		}
		known[key] = optlist[key].type;
	});
	
	return {
		known: known,
		aliases: aliases
	}
}
function getParams(optlist){
	var aliases = {};
	var known = {};
	
	Object.keys(optlist).forEach(function(key) {
		var short = optlist[key].short;
		if (short) {
			aliases[short] = '--' + key;
		}
		known[key] = optlist[key].type;
	});
	
	return {
		known: known,
		aliases: aliases
	}
}
function getParams ( optlist ) { var aliases = { } ; var known = { } ; Object . keys ( optlist ) . forEach ( function ( key ) { var short = optlist [ key ] . short ; if ( short ) { aliases [ short ] = '--' + key ; } known [ key ] = optlist [ key ] . type ; } ) ; return { known : known , aliases : aliases } }
Parse `optlist` into a form that nopt can handle.
Parse optlist into a form that nopt can handle .