pub fn parse_trd_sides_csv(s: &str) -> Result<HashSet<String>>Expand description
解析 --allowed-trd-sides CSV → HashSet<String> (uppercase).
行为:
- case-insensitive 接入, uppercase 归一化输出 (与 daemon 校验大小写一致)
- 空 token / trailing comma 跳过
- 不在
ALLOWED_TRD_SIDES集合的 token → loud Err (避免 v1.4.93 BUG-001 schema-runtime drift: CLI 接受任意字符串然后 daemon 接 wire 时拒掉, 用户体验差) - 全空 / 空 CSV → 返空集; 调用方决定如何对待空集 (gen-key 走 None 表示 不限制, 见调用点逻辑)