Files
got/cli/parse_test.go
Hojun-Cho 2afcb861e4 cli: parse each option value once
validate() parsed every value to bounds-check it, then the typed getters
re-parsed the same string at read time (with a comment admitting the
failure was unreachable). A single parseValue() now validates and converts,
finalize() runs it once per option after layering, and the getters just
read the stored typed value.
2026-06-22 08:29:25 +09:00

7.5 KiB