MCPcopy Index your code
hub / github.com/RsyncProject/rsync / usage

Function usage

usage.c:319–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void usage(enum logcode F)
320{
321 print_rsync_version(F);
322
323 rprintf(F,"\n");
324 rprintf(F,"rsync is a file transfer program capable of efficient remote update\n");
325 rprintf(F,"via a fast differencing algorithm.\n");
326
327 rprintf(F,"\n");
328 rprintf(F,"Usage: rsync [OPTION]... SRC [SRC]... DEST\n");
329 rprintf(F," or rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST\n");
330 rprintf(F," or rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST\n");
331 rprintf(F," or rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST\n");
332 rprintf(F," or rsync [OPTION]... [USER@]HOST:SRC [DEST]\n");
333 rprintf(F," or rsync [OPTION]... [USER@]HOST::SRC [DEST]\n");
334 rprintf(F," or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]\n");
335 rprintf(F,"The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect\n");
336 rprintf(F,"to an rsync daemon, and require SRC or DEST to start with a module name.\n");
337 rprintf(F,"\n");
338 rprintf(F,"Options\n");
339#include "help-rsync.h"
340 rprintf(F,"\n");
341 rprintf(F,"Use \"rsync --daemon --help\" to see the daemon-mode command-line options.\n");
342 rprintf(F,"Please see the rsync(1) and rsyncd.conf(5) manpages for full documentation.\n");
343 rprintf(F,"See https://rsync.samba.org/ for updates, bug reports, and answers\n");
344}
345
346void daemon_usage(enum logcode F)
347{

Callers 2

parse_argumentsFunction · 0.85
mainFunction · 0.85

Calls 2

print_rsync_versionFunction · 0.85
rprintfFunction · 0.70

Tested by

no test coverage detected