From: des Date: Sat, 16 Sep 2006 12:43:11 +0000 (+0000) Subject: Sort options correctly. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59b996d3b977509ea8a2ec58b761722f508e7198;p=varnish Sort options correctly. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1015 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.1 b/varnish-cache/bin/varnishd/varnishd.1 index f14f6294..6adb2db7 100644 --- a/varnish-cache/bin/varnishd/varnishd.1 +++ b/varnish-cache/bin/varnishd/varnishd.1 @@ -16,8 +16,8 @@ .Op Fl h Ar type Ns Op , Ns Ar options .Op Fl p Ar param Ns = Ns Ar value .Op Fl s Ar type Ns Op , Ns Ar options -.Op Fl t Ar ttl .Op Fl T Ar address Ns Op : Ns Ar port +.Op Fl t Ar ttl .Op Fl V .Op Fl w Ar min Ns Op , Ns Ar max Ns Op , Ns Ar timeout .Sh DESCRIPTION @@ -78,8 +78,6 @@ Use the specified storage backend. See .Sx Storage Types for a list of supported storage types. -.It Fl t Ar ttl -Specifies a hard minimum time to live for cached documents. .It Fl T Ar address Ns Op : Ns Ar port Offer a management interface on the specified .Ar address @@ -88,6 +86,8 @@ and See .Sx Management Interface for a list of management commands. +.It Fl t Ar ttl +Specifies a hard minimum time to live for cached documents. .It Fl V Display the version number and exit. .It Fl w Ar min Ns Op , Ns Ar max Ns Op , Ns Ar timeout diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 60db14d4..f68b6510 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -359,7 +359,7 @@ main(int argc, char *argv[]) MCF_ParamInit(cli); cli_check(cli); - while ((o = getopt(argc, argv, "a:b:df:h:p:s:t:T:Vw:")) != -1) + while ((o = getopt(argc, argv, "a:b:df:h:p:s:T:t:Vw:")) != -1) switch (o) { case 'a': MCF_ParamSet(cli, "listen_address", optarg);