1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 09:41:07 +00:00
uutils-coreutils/tests
Michael Debertol c1f67ed775 sort: support --sort flag and check for conflicts
`sort` supports three ways to specify the sort mode: a long option
(e.g. --numeric-sort), a short option (e.g. -n) and the sort flag
(e.g. --sort=numeric).
This adds support for the sort flag.

Additionally, sort modes now conflict, which means that an error is
shown when multiple modes are passed, instead of silently picking a mode.
For consistency, I added the `random` sort mode to the `SortMode` enum,
instead of it being a bool flag.
2021-05-22 23:10:41 +02:00
..
benches/factor factor: Move benchmarks out-of-crate 2021-05-17 19:43:38 +02:00
by-util sort: support --sort flag and check for conflicts 2021-05-22 23:10:41 +02:00
common head: display errors for each input file 2021-05-17 08:19:47 -04:00
fixtures head: print headings when reading multiple files 2021-05-16 12:03:10 -04:00
tests.rs tests ~ use build.rs build list of test_UTIL module files 2020-06-02 12:17:30 -05:00