function _normalize(settings) {
	settings = defaultsDeep(settings, _defaultSettings)
	settings.options = settings.options
		.map(function(option) {
			option = defaultsDeep(option, _defaultOption)
			if (!Array.isArray(option.name))
				option.name = option.name != null ? [option.name] : []
			if (!Array.isArray(option.short))
				option.short = option.short != null ? [option.short] : []
			if (!Array.isArray(option.long))
				option.long = option.long != null ? [option.long] : []
			return option
		})
	return settings
}
/**
 * Normalizes the configuration of the parser by applying the defaults.
 * @param {getopt~Settings} [settings] The configuration of the parser.
 * @returns {getopt~Settings} The normalized configuration.
 */
Normalizes the configuration of the parser by applying the defaults.
@param {getopt~Settings} [settings] The configuration of the parser.
@returns {getopt~Settings} The normalized configuration.
Normalizes the configuration of the parser by applying the defaults . @param { getopt~Settings } [ settings ] The configuration of the parser . @returns { getopt~Settings } The normalized configuration .
function _normalize(settings) {
	settings = defaultsDeep(settings, _defaultSettings)
	settings.options = settings.options
		.map(function(option) {
			option = defaultsDeep(option, _defaultOption)
			if (!Array.isArray(option.name))
				option.name = option.name != null ? [option.name] : []
			if (!Array.isArray(option.short))
				option.short = option.short != null ? [option.short] : []
			if (!Array.isArray(option.long))
				option.long = option.long != null ? [option.long] : []
			return option
		})
	return settings
}
function _normalize ( settings ) { settings = defaultsDeep ( settings , _defaultSettings ) settings . options = settings . options . map ( function ( option ) { option = defaultsDeep ( option , _defaultOption ) if ( ! Array . isArray ( option . name ) ) option . name = option . name != null ? [ option . name ] : [ ] if ( ! Array . isArray ( option . short ) ) option . short = option . short != null ? [ option . short ] : [ ] if ( ! Array . isArray ( option . long ) ) option . long = option . long != null ? [ option . long ] : [ ] return option } ) return settings }
Normalizes the configuration of the parser by applying the defaults.
Normalizes the configuration of the parser by applying the defaults .