Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions cmd/fsend/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,38 +247,42 @@ EXAMPLES
Use a different server:
fsend --connect relay.mycompany.com:443

COMMON FLAGS
SENDING
--text "<string>" Send a literal string instead of a file
(the receiver prints it — nothing is saved;
keep it with: fsend <code> > note.txt)
--pass <password> Require the receiver to enter a password.
Bare --pass prompts interactively — sender side
suggests a fresh random default (press Enter to
accept). Env: FSEND_PASS.
--exclude <glob,…> Skip entries matching these globs in a directory
--name <string> Override the hostname shown to the peer

RECEIVING
--yes Auto-accept incoming transfers (no prompt)
--out <dir> Receive into this directory (default: current)
--out - Receive to stdout (single file, text, or piped
stream — pipe-friendly: fsend <code> --out - | …)
--yes Auto-accept incoming transfers (no prompt)
--overwrite Replace existing files that differ (identical files
are always skipped)
--dry-run Show what would transfer (new/identical/differs),
write nothing
--checksum Decide identical files by content hash, not
size+mtime (like rsync -c)

GENERAL
--quiet Suppress all non-error output
--name <string> Override the hostname shown to the peer
--exclude <glob,…> Skip entries matching these globs in a directory
--help Show this help
--version Show version
--debug Verbose logging to stderr (also: FSEND_DEBUG=1)
--help, -h Show this help
--version, -v Show version

ADVANCED FLAGS
ADVANCED
--connect Show current server
--connect <host:port> Set the server (persisted)
--connect <host:port>,<password>
Set the server + shared password
--connect default Revert to the compiled-in default server
--send / --receive Force mode (skip code/path auto-detect)
--debug Verbose logging to stderr (also: FSEND_DEBUG=1)
--update Update fsend to the latest release
--uninstall Remove the fsend binary and its config dir

Expand Down
4 changes: 2 additions & 2 deletions cmd/fsend/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ func TestBoldHelpHeaders(t *testing.T) {
t.Setenv("NO_COLOR", "")
t.Setenv("FORCE_COLOR", "1")
got := boldHelpHeaders(helpTemplate)
for _, header := range []string{"USAGE", "EXAMPLES", "COMMON FLAGS",
"ADVANCED FLAGS", "LEARN MORE"} {
for _, header := range []string{"USAGE", "EXAMPLES", "SENDING",
"RECEIVING", "GENERAL", "ADVANCED", "LEARN MORE"} {
if !strings.Contains(got, "\x1b[1m"+header+"\x1b[0m") {
t.Errorf("header %q not bolded", header)
}
Expand Down
Loading