1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-17 02:31:02 +00:00
uutils-coreutils/src
Jack Grigg fccab8a691 hashsum: Refactor uu_app to isolate non-"GNU Coreutils" options
Several binaries have been added to `hashsum` that have never been part
of GNU Coreutils:

- `sha3*sum` (uutils/coreutils#869)
- `shake*sum` (uutils/coreutils#987)
- `b3sum` (uutils/coreutils#3108 and uutils/coreutils#3164)

In particular, the `--bits` option, and the `--no-names` option added in
uutils/coreutils#3361, are not valid for any GNU Coreutils `*sum` binary
(as of Coreutils 9.0).

This commit refactors the argument parsing so that `--bits` and
`--no-names` become invalid options for the binaries intended to match
the GNU Coreutils API, instead of being ignored options. It also
refactors the custom binary name handling to distinguish between
binaries intended to match the GNU Coreutils API, and binaries that
don't have that constraint.

Part of uutils/coreutils#2930.
2022-06-10 10:07:00 +02:00
..
bin docs: don't download the tldr archive (#3415) 2022-04-17 21:33:51 +02:00
uu hashsum: Refactor uu_app to isolate non-"GNU Coreutils" options 2022-06-10 10:07:00 +02:00
uucore build(deps): bump once_cell from 1.11.0 to 1.12.0 2022-06-06 19:18:28 +00:00
uucore_procs Version 0.0.14 (#3553) 2022-05-22 19:57:19 +02:00