Skip to content

Preserve fractional CLI numeric flags - #77

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
WNZhao:fix/fractional-cli-min
Sep 11, 2026
Merged

Preserve fractional CLI numeric flags#77
ralyodio merged 1 commit into
profullstack:masterfrom
WNZhao:fix/fractional-cli-min

Conversation

@WNZhao

@WNZhao WNZhao commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #76.

flagNumber now parses the complete numeric value instead of truncating it as an integer. This preserves fractional --min thresholds such as 0.25 and stops accepting partial numeric strings such as 12px.

Regression coverage exercises both cases.

Verification: npx --yes pnpm@11.18.0 test — 226 tests passed, 0 failed (the database-backed API suite remains skipped when no PostgreSQL instance is configured).

Signed-off-by: walker <zw37520@gmail.com>
@ralyodio
ralyodio merged commit 4dbcf4c into profullstack:master Sep 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI truncates fractional --min values

2 participants