Repository navigation
Conversation
fe5ed6c to
c4dc7a7
Compare
22410bd to
183c419
Compare
|
clippy is sad on 7 jobs :) |
|
clippy is sad :), and a bunch of jobs are failing |
183c419 to
f7b9531
Compare
Merging this PR will degrade performance by 41.29%3 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
f7b9531 to
22a74ac
Compare
22a74ac to
f0be489
Compare
|
thanks for working on this! |
f0be489 to
2a82962
Compare
2a82962 to
144fd4f
Compare
|
GNU testsuite comparison: |
144fd4f to
f56d760
Compare
|
Binary size comparison: |
f56d760 to
7afbaa9
Compare
|
CI note: the The same branch's previous GnuTests run on commit |
7afbaa9 to
63d5e0f
Compare
63d5e0f to
b99c19f
Compare
--block-size is now collected with clap (ArgAction::Append) so that every value given is validated, even when a later -h/--si overrides it; the error keeps the caret under the offending value. Each value is parsed exactly once and the parsed size is carried along in SizeMode, so nothing is parsed twice and there is no expect()/panic path left.
b99c19f to
15b2002
Compare
ls --block-size=0 --siprinted the listing and exited 0, because--si(or-h) appearing after--block-sizemade clap drop the block-size value before it was validated. GNU validates the argument as it is parsed, regardless of option order:Validate every command-line
--block-sizevalue up front, so an invalid size is rejected even when a later-h/--sichanges the display format. The existing last-one-wins behaviour between--block-sizeand-h/--siis unchanged.Test:
tests/by-util/test_ls.rs::test_ls_invalid_block_size(new cases for--block-size=0 --siand--block-size=invalid --human-readable).Closes #16008