Cyan4973 / Cyan4973/xxHash

--quiet is not quiet if passed as last argument

Closed
#1,098 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
11.3k
Forks
912
Avg merge
2h 58m
Merged PRs (30d)
24

Description

Hi,

Just noticed some weird behavior. The _--quiet_ option is ignored if it is passed after the _--check_ option

Below I ran _--quiet -c checksums/chk.xxhash_ first
Output was as expected (quiet with no _OK_ lines

Then I ran _-c --quiet_ and it was not quiet

> user@fedora ~> xxhsum --version
xxhsum 0.8.3 by Yann Collet
compiled as 64-bit x86 autoVec (AVX2 detected) little endian with GCC 15.1.1 20250521 (Red Hat 15.1.1-2)
user@fedora ~> xxhsum --quiet -c checksums/chk.xxhash
^C
user@fedora ~> xxhsum -c checksums/chk.xxhash --quiet
_many lines ending with OK_

System is Fedora latest with xxhash from official repo

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two xxhsum commands shown in the issue and then trace the xxhsum command-line option handling. Done means --quiet suppresses the OK lines whether it appears before or after -c; no file or test is named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.