function showVersionHelp(version) {
  if (!semver.validRange(version)) {
    console.log(`Invalid version: ${version}`);
    return;
  }

  const ranges = migrations.map((migration) => migration.range);
  if (!ranges.some((range) => semver.intersects(range, version))) {
    console.log(`No migrations found for version ${version}`);
    return;
  }

  console.log(`Migrations for version ${version}:`);

  for (const migration of migrations) {
    if (!semver.intersects(migration.range, version)) continue;
    console.log(`  ${chalk.blue(migration.name)}, ${migration.description}`);
  }
}
Logs information about migrations for the given version.
@param {string} version The version to show migrations for.