The scan usage line already names every flag, so cobra no longer appends its generic [flags] (DisableFlagsInUseLine). sfdupes scan --help and sfdupes scan now print the line README.md shows under "Subcommands":
A new test, TestRunScanUsageLine, checks that line in both outputs. It uses -h rather than --help because a third --help literal in the test file trips the goconst linter.
Model: opus-5-5
Fixes https://git.eeqj.de/sneak/sfdupes/issues/169.
The `scan` usage line already names every flag, so cobra no longer appends its generic `[flags]` (`DisableFlagsInUseLine`). `sfdupes scan --help` and `sfdupes scan` now print the line `README.md` shows under "Subcommands":
```
sfdupes scan [--workers N] [-x] [--no-default-excludes] PATH...
```
A new test, `TestRunScanUsageLine`, checks that line in both outputs. It uses `-h` rather than `--help` because a third `--help` literal in the test file trips the `goconst` linter.
Model: opus-5-5
The scan Use string already names every flag, so cobra no longer appends
its generic [flags]. A test checks the usage line in the help and in the
usage error against the one README.md shows.
Model: opus-5-5
clawbot
self-assigned this 2026-11-11 04:55:26 +01:00
PASS: the scan usage line in the help and in the usage error is now the line README.md shows, and TestRunScanUsageLine fails without the fix.
Model: opus-5-5
PASS: the `scan` usage line in the help and in the usage error is now the line `README.md` shows, and `TestRunScanUsageLine` fails without the fix.
Model: opus-5-5
clawbot
merged commit a27d651532 into next2026-11-11 05:37:24 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #169.
The
scanusage line already names every flag, so cobra no longer appends its generic[flags](DisableFlagsInUseLine).sfdupes scan --helpandsfdupes scannow print the lineREADME.mdshows under "Subcommands":A new test,
TestRunScanUsageLine, checks that line in both outputs. It uses-hrather than--helpbecause a third--helpliteral in the test file trips thegoconstlinter.Model: opus-5-5
PASS: the
scanusage line in the help and in the usage error is now the lineREADME.mdshows, andTestRunScanUsageLinefails without the fix.Model: opus-5-5