summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2009-01-05 22:48:52 +0000
committerfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2009-01-05 22:48:52 +0000
commit99978771fc2442ff3ad9c00cb93844e51ef3e4ba (patch)
treeb1a44ee25ded7621089cc64f87ecd02a0be8b77b
parentfd47a894bd2b5b8d963598c4e343860e84204daa (diff)
downloaddistcc-99978771fc2442ff3ad9c00cb93844e51ef3e4ba.tar.gz
Document the --scan-includes option in the output of "distcc --help".
git-svn-id: http://distcc.googlecode.com/svn/trunk@644 01de4be4-8c4a-0410-9132-4925637da917
-rw-r--r--src/distcc.c46
1 files changed, 25 insertions, 21 deletions
diff --git a/src/distcc.c b/src/distcc.c
index ee360d5..6d90f36 100644
--- a/src/distcc.c
+++ b/src/distcc.c
@@ -77,40 +77,44 @@ static void dcc_show_usage(void)
dcc_show_version("distcc");
printf(
"Usage:\n"
-" distcc [COMPILER] [compile options] -o OBJECT -c SOURCE\n"
-" distcc --help\n"
+" distcc [--scan-includes] [COMPILER] [compile options] -o OBJECT -c SOURCE\n"
+" distcc [--help|--version|--show-hosts|-j]\n"
"\n"
"Options:\n"
-" COMPILER defaults to \"cc\"\n"
-" --help explain usage and exit\n"
-" --version show version and exit\n"
-" --show-hosts show host list and exit\n"
-" -j calculate the concurrency level from\n"
-" the host list.\n"
+" COMPILER Defaults to \"cc\".\n"
+" --help Explain usage, and exit.\n"
+" --version Show version, and exit.\n"
+" --show-hosts Show host list, and exit.\n"
+" -j Show the concurrency level, as calculated from\n"
+" the host list, and exit.\n"
+" --scan-includes Show the files that distcc would send to the\n"
+" remote machine, and exit. (Pump mode only.)\n"
"\n"
"Environment variables:\n"
" See the manual page for a complete list.\n"
-" DISTCC_VERBOSE=1 give debug messages\n"
-" DISTCC_LOG send messages to file, not stderr\n"
-" DISTCC_SSH command to run to open SSH connections\n"
-" DISTCC_DIR directory for host list and locks\n"
+" DISTCC_VERBOSE=1 Give debug messages.\n"
+" DISTCC_LOG Send messages to file, not stderr.\n"
+" DISTCC_SSH Command to run to open SSH connections.\n"
+" DISTCC_DIR Directory for host list and locks.\n"
"\n"
"Server specification:\n"
"A list of servers is taken from the environment variable $DISTCC_HOSTS, or\n"
"$DISTCC_DIR/hosts, or ~/.distcc/hosts, or %s/distcc/hosts.\n"
"Each host can be given in any of these forms, see the manual for details:\n"
"\n"
-" localhost run in place\n"
-" HOST TCP connection, port %d\n"
-" HOST:PORT TCP connection, specified port\n"
-" @HOST SSH connection\n"
-" USER@HOST SSH connection to specified host\n"
-" --randomize Randomize the server list before execution\n"
+" localhost Run in place.\n"
+" HOST TCP connection, port %d.\n"
+" HOST:PORT TCP connection, specified port.\n"
+" @HOST SSH connection to specified host.\n"
+" USER@HOST SSH connection to specified username at host.\n"
+" HOSTSPEC,lzo Enable compression.\n"
+" HOSTSPEC,cpp,lzo Use pump mode (remote preprocessing).\n"
+" --randomize Randomize the server list before execution.\n"
"\n"
"distcc distributes compilation jobs across volunteer machines running\n"
-"distccd. Jobs that cannot be distributed, such as linking or \n"
-"preprocessing are run locally. distcc should be used with make's -jN\n"
-"option to execute in parallel on several machines.\n",
+"distccd. Jobs that cannot be distributed, such as linking, are run locally.\n"
+"distcc should be used with make's -jN option to execute in parallel on\n"
+"several machines.\n",
SYSCONFDIR,
DISTCC_DEFAULT_PORT);
}