[4.1] 1f32fae Update usage text to reflect reality.

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 14 15:15:07 CET 2016


commit 1f32fae8323fa77b5209bb55b52359d7795eb79e
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Fri Dec 4 11:54:18 2015 +0100

    Update usage text to reflect reality.
    
    Update built-in usage text to reflect that -T is optional.

diff --git a/bin/varnishadm/varnishadm.c b/bin/varnishadm/varnishadm.c
index 12650b2..621d696 100644
--- a/bin/varnishadm/varnishadm.c
+++ b/bin/varnishadm/varnishadm.c
@@ -380,8 +380,8 @@ static void
 usage(void)
 {
 	fprintf(stderr,
-	    "usage: varnishadm [-n ident] [-t timeout] [-S secretfile] "
-	    "-T [address]:port command [...]\n");
+	    "Usage: varnishadm [-n ident] [-t timeout] [-S secretfile] "
+	    "[-T [address]:port] [command [...]]\n");
 	fprintf(stderr, "\t-n is mutually exclusive with -S and -T\n");
 	exit(1);
 }
diff --git a/doc/sphinx/reference/varnishadm.rst b/doc/sphinx/reference/varnishadm.rst
index 4f24c2c..29a34ec 100644
--- a/doc/sphinx/reference/varnishadm.rst
+++ b/doc/sphinx/reference/varnishadm.rst
@@ -14,7 +14,7 @@ Control a running Varnish instance
 SYNOPSIS
 ========
 
-varnishadm [-n ident] [-t timeout] [-S secretfile] -T [address]:port [command [...]]
+varnishadm [-n ident] [-t timeout] [-S secretfile] [-T [address]:port] [command [...]]
 
 
 DESCRIPTION



More information about the varnish-commit mailing list