[4.1] 2bb6565 Parameters cleanup
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Sep 4 15:54:53 CEST 2015
commit 2bb6565fe48725297a702b931ec709dae1d1c619
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Aug 3 13:00:10 2015 +0200
Parameters cleanup
Mark optional parts as such and briefly document components. Sync with
the man page. The address part for options -a and -b is technically
optional too.
diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index eab4f90..899b9ba 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -141,11 +141,14 @@ usage(void)
#define FMT " %-28s # %s\n"
fprintf(stderr, "usage: varnishd [options]\n");
- fprintf(stderr, FMT, "-a address:port,proto",
+ fprintf(stderr, FMT, "-a address[:port][,proto]",
"HTTP listen address and port (default: *:80)");
- fprintf(stderr, FMT, "-b address:port", "backend address and port");
- fprintf(stderr, FMT, "", " -b <hostname_or_IP>");
- fprintf(stderr, FMT, "", " -b '<hostname_or_IP>:<port_or_service>'");
+ fprintf(stderr, FMT, "", " address: defaults to loopback");
+ fprintf(stderr, FMT, "", " port: port or service (default: 80)");
+ fprintf(stderr, FMT, "", " proto: HTTP/1 (default), PROXY");
+ fprintf(stderr, FMT, "-b address[:port]", "backend address and port");
+ fprintf(stderr, FMT, "", " address: hostname or IP");
+ fprintf(stderr, FMT, "", " port: port or service (default: 80)");
fprintf(stderr, FMT, "-C", "print VCL code compiled to C language");
fprintf(stderr, FMT, "-d", "debug");
fprintf(stderr, FMT, "-F", "Run in foreground");
@@ -162,7 +165,7 @@ usage(void)
#endif
fprintf(stderr, FMT, "", " -j unix[,user=<user>][,ccgroup=<group>]");
fprintf(stderr, FMT, "", " -j none");
- fprintf(stderr, FMT, "-l vsl,vsm", "Size of shared memory file");
+ fprintf(stderr, FMT, "-l vsl[,vsm]", "Size of shared memory file");
fprintf(stderr, FMT, "", " vsl: space for VSL records [80m]");
fprintf(stderr, FMT, "", " vsm: space for stats counters [1m]");
fprintf(stderr, FMT, "-M address:port", "Reverse CLI destination");
diff --git a/doc/sphinx/reference/varnishd.rst b/doc/sphinx/reference/varnishd.rst
index 7292a12..f76f031 100644
--- a/doc/sphinx/reference/varnishd.rst
+++ b/doc/sphinx/reference/varnishd.rst
@@ -15,7 +15,7 @@ HTTP accelerator daemon
SYNOPSIS
========
-varnishd [-a address[:port][,PROTO]] [-b host[:port]] [-C] [-d] [-F] [-f config] [-h type[,options]] [-i identity] [-j jail[,jailoptions]] [-l shl[,free]] [-M address:port] [-n name] [-P file] [-p param=value] [-r param[,param...]] [-S secret-file] [-s [name=]kind[,options]] [-T address[:port]] [-t TTL] [-V] [-W waiter]
+varnishd [-a address[:port][,PROTO]] [-b host[:port]] [-C] [-d] [-F] [-f config] [-h type[,options]] [-i identity] [-j jail[,jailoptions]] [-l vsl[,vsm]] [-M address:port] [-n name] [-P file] [-p param=value] [-r param[,param...]] [-S secret-file] [-s [name=]kind[,options]] [-T address[:port]] [-t TTL] [-V] [-W waiter]
DESCRIPTION
===========
More information about the varnish-commit
mailing list