On 09/09/2021 00:39, Michael Stone wrote:
On Tue, Sep 07, 2021 at 04:45:23PM +0100, Pádraig Brady wrote:
This patch set refactors all digest implementations
to their own modules, all interfaced through digest.c.
All file operations and diagnostics are done in digest.c.
All digests are made available through `cksum -a`.
Also we add support for SM3 through `cksum -a sm3` only.

Might be nice if there was something like "-a list-available" to see
what algorithms are available without parsing the --help output.

That's pretty much supported already in the argmatch functionality.
I.e. if you use `cksum -a list-available`, the list of possibilities are 
printed.
I generally use that feature like:

$ cksum --algo=
cksum: ambiguous argument ‘’ for ‘--algorithm’
Valid arguments are:
  - ‘bsd’
  - ‘sysv’
  - ‘crc’
  - ‘md5’
  - ‘sha1’
  - ‘sha224’
  - ‘sha256’
  - ‘sha384’
  - ‘sha512’
  - ‘blake2b’
  - ‘sm3’
Try 'cksum --help' for more information.


cheers,
Pádraig

Reply via email to