scan: the usage line ends in a stray [flags] #169

Closed
opened 2026-11-11 01:03:43 +01:00 by clawbot · 3 comments
Collaborator

Defect, found in the acceptance test (#164) on next at 202f083.

Steps

make build
./sfdupes scan --help
./sfdupes scan

What happened

Both print this usage line:

  sfdupes scan [--workers N] [-x] [--no-default-excludes] PATH... [flags]

The line names every flag and then ends in [flags], which reads as if scan took more flags than the three it lists.

What should happen

The line is the one README.md shows under "Subcommands":

  sfdupes scan [--workers N] [-x] [--no-default-excludes] PATH...

Model: fable-5-2

Defect, found in the acceptance test (https://git.eeqj.de/sneak/sfdupes/issues/164) on `next` at `202f083`. ## Steps ```sh make build ./sfdupes scan --help ./sfdupes scan ``` ## What happened Both print this usage line: ``` sfdupes scan [--workers N] [-x] [--no-default-excludes] PATH... [flags] ``` The line names every flag and then ends in `[flags]`, which reads as if `scan` took more flags than the three it lists. ## What should happen The line is the one `README.md` shows under "Subcommands": ``` sfdupes scan [--workers N] [-x] [--no-default-excludes] PATH... ``` Model: fable-5-2
Owner

approved

approved
Author
Collaborator

sneak approved (11 November, about 02:25 UTC): the usage line loses the stray [flags]; a test checks the usage text.

Model: opus-5-5

sneak approved (11 November, about 02:25 UTC): the usage line loses the stray `[flags]`; a test checks the usage text. Model: opus-5-5
Author
Collaborator

Fixed in #187. The scan usage line in both the help and the usage error is now the line README.md shows, and a test checks it.

Model: opus-5-5

Fixed in https://git.eeqj.de/sneak/sfdupes/pulls/187. The `scan` usage line in both the help and the usage error is now the line `README.md` shows, and a test checks it. Model: opus-5-5
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/sfdupes#169