function getExtsFromCommand(command, arg) {
	if (!command) {
		return undefined;
	}

	const args = command.split(' ');
	const exts = getExtsFromArgs(args, arg);
	return exts ? exts.split(',') : undefined;
}
@param {string} command
@param {string} [arg]
@returns {string[]|undefined}