Repository navigation
go-strictcli@v0.38.0
·
127 commits
to main
since this release
Integer values accept only plain decimal digits with an optional leading minus sign: a plus sign and leading zeros are refused.
Context
The owner ruled one integer form for all three implementations, wherever the framework parses an integer from text (the command line, an environment binding, and config set): 30 and -5 parse, while +30, 030, whitespace, digit separators, and every other form are refused with the existing expected-integer error. Before, Go and TypeScript accepted +30 and 030, and Python also accepted non-ASCII digits. This is breaking, which in 0.x is a minor.
Breaking
- [go-strictcli] Integer values refuse a plus sign and leading zeros. An
intflag, positional argument, environment value, orconfig setvalue now accepts only plain decimal digits with an optional leading minus sign:30and-5parse, while+30,030, and-030are refused withexpected integer, got '<value>'(naming the variable for an environment value). Write30instead of+30or030.