mirror of
https://github.com/MiniMax-AI/cli.git
synced 2026-09-18 08:48:06 +08:00
9f1f093b81
Address PR review: - hoist the recognised true/false token sets to module-level Sets instead of allocating an array on every boolean-flag parse - accept common spellings (true/1/yes/on, false/0/no/off; case- and whitespace-insensitive) and throw a clear error for an unrecognised explicit value (e.g. `--flag=maybe`, `--flag=`) so a typo cannot silently enable a flag, consistent with numeric-flag validation - expand tests to cover no/off, case/whitespace, true-like values, and the rejection path
1.9 KiB
1.9 KiB