Files
minimax-ai__cli/test/args.test.ts
Osamaali313 9f1f093b81 refactor(args): validate explicit boolean flag values (review feedback)
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
2026-06-15 23:15:26 +03:00

1.9 KiB