Repository navigation
Regroup --help flags by role; show -h/-v shorthands - #84
Merged
Merged
Conversation
Replace the COMMON/ADVANCED split — which mixed send- and receive-only flags in one long list — with SENDING / RECEIVING / GENERAL / ADVANCED, matching the tool's send-or-receive model and the usage docs. A user now jumps straight to their mode instead of scanning past the other half's flags, and the occasional ones (--dry-run, --checksum) sit with their mode rather than padding a "common" shortlist. Also list the -h / --help and -v / --version shorthands, which already work but weren't shown. Header bolding is generic (any ALL-CAPS line), so the new section names need no logic change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
fsend --helpflag list was one long COMMON FLAGS block (12 entries) that mixed send-only and receive-only flags together — so a sender had to scan past--out/--yes/--overwrite/--dry-run/--checksumto find--text/--pass, and vice versa. fsend's whole model is "am I sending or receiving?", so the help now groups by that:--dry-run,--checksum) now sit inRECEIVINGwhere they belong, instead of padding a "common" shortlist.usage.md(Sending / Receiving / Shared), so help and docs reinforce each other.-h/-vshorthands listed — they already worked but weren't shown.Notes
helpTemplatechanged;completionandserverhave their own templates (untouched).-h/-v— deliberately. Single-letter space collides here (-cchecksum vs connect,-ddebug vs dry-run), and fsend favors explicit, discoverable flags.Testing
TestBoldHelpHeadersupdated for the new section names; fullgo test ./...,gofmt, and a Windows cross-compile pass. Verified the rendered--helpoutput by hand.🤖 Generated with Claude Code