Skip to content

Fix help text issues across cmd/desync subcommands#332

Merged
folbricht merged 1 commit intomasterfrom
fix-cmd-help-text
Apr 18, 2026
Merged

Fix help text issues across cmd/desync subcommands#332
folbricht merged 1 commit intomasterfrom
fix-cmd-help-text

Conversation

@folbricht
Copy link
Copy Markdown
Owner

Summary

Cleanup pass over the Short/Long/Example fields of the cobra subcommands under cmd/desync/. Most are doc-only; the --writable flag rename is backward compatible.

  • mount-index: example referenced -x for --cor-file, but no short flag is registered — running the example verbatim errored out. Updated the example to use --cor-file.
  • extract: Long description referenced -seed and -seed-dir (single dash) for long-only flags; corrected to --seed / --seed-dir.
  • inspect-chunks, info: second line of each multi-line Example was flush-left instead of matching the two-space indent of the first line, producing ragged --help output. Aligned them.
  • chunk-server, index-server: renamed --writeable to the standard spelling --writable. Kept --writeable registered and marked deprecated via pflag so existing scripts continue to work (with a deprecation warning).
  • inspect-chunks: renamed newinspectChunksCommandnewInspectChunksCommand to match the new<Cmd>Command convention used everywhere else in the package (callers in main.go and the test file updated).
  • root: dropped the trailing period from Short — it was the only one in the package that had one.
  • untar: added the missing article — "Extract a directory tree ..." (matches tar's "Store a directory tree ...").
  • cache: --ignore flag help said index(s); changed to indexes.

- mount-index: replace non-existent `-x` in example with `--cor-file`
- extract: correct `-seed`/`-seed-dir` to `--seed`/`--seed-dir` in description
- inspect-chunks, info: align second example line indent with first
- chunk-server, index-server: rename `--writeable` flag to `--writable`,
  keep `--writeable` as a deprecated alias for backward compatibility
- inspect-chunks: rename `newinspectChunksCommand` to `newInspectChunksCommand`
- root: drop trailing period from Short for consistency
- untar: add missing article in Short ("Extract a directory tree ...")
- cache: fix awkward `index(s)` in --ignore flag help
@folbricht folbricht merged commit 6512c90 into master Apr 18, 2026
6 checks passed
@folbricht folbricht deleted the fix-cmd-help-text branch April 18, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant