export interface RuntimeConfig {
  host: string;
  port: number;
}

export function readRuntimeConfig(argv: string[] = process.argv.slice(2)): { configPath: string } {
  if (argv.length === 0) {
    throw new Error("需要指定 YAML 配置文件路径\n用法: dial-server <config.yaml>");
  }

  return { configPath: argv[0]! };
}
