You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 700ff43
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): bound --min-savings-pct to 0-100 (#2231)
--min-savings-pct was only checked for being finite. A negative value
behaved as no filter and a value above 100 dropped every recommendation,
since savings percentages are measured against on-demand and cannot
exceed 100. Reject both at validation, document the range, and rename the
flag-parsing validation test to cover out-of-range as well as non-finite
values.
Closes#2161
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
--min-savings-pct <float> Minimum savings percentage (0 = no filter)
150
150
```
151
151
152
-
Drop recommendations whose estimated savings percentage falls below this threshold.
152
+
Drop recommendations whose estimated savings percentage falls below this threshold. The value must be between 0 and 100.
153
153
154
154
**Important naming distinction:**`--min-savings-pct` is a **percentage** value (e.g. `10` means "at least 10% savings"). This is different from the GUI and API `min_savings` parameter, which filters by **dollar amount**. A value of `30` in `--min-savings-pct` means "30% savings", but `min_savings=30` in the API means "$30 in savings". Mixing up the two by copying a CLI value into the GUI filter (or vice versa) produces silent, incorrect filtering.
0 commit comments