[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] better usage() for svnserve

From: <kfogel_at_collab.net>
Date: 2003-07-28 19:19:13 CEST

pll@lanminds.com writes:
> * subversion/svnserve/main.c
>
> print out more verbose help information for 'svnserve help'

We have an abstracted mechanism for keeping options and their
documention in sync... Check out subversion/clients/cmdline/main.c for
an example.

-K

> Index: subversion/svnserve/main.c
> ===================================================================
> --- subversion/svnserve/main.c (revision 6595)
> +++ subversion/svnserve/main.c (working copy)
> @@ -76,10 +76,16 @@
>
> static void usage(const char *progname)
> {
> + char *opt_d = "\t-d\t\tRun as a daemon\n";
> + char *opt_t = "\t-t\t\tRun in tunnel mode\n";
> + char *opt_X = "\t-X\t\tListen once and exit\n";
> + char *opt_r = "\t-r path\t\tRun with \"path\" set as file system root\n";
> + char *opt_R = "\t-R\t\tRun in read-only mode\n";
> + char *opt_T = "\t-T\t\tRun in handling mode\n";
> +
> if (!progname)
> progname = "svn-server";
> - fprintf(stderr,
> - "Usage: %s [-X|-d|-t|-R" CONNECTION_USAGE "] [-r root]\n", progname);
> + fprintf(stderr, "Usage: %s [-X|-d|-t|-R" CONNECTION_USAGE "] [-r root]\n%s%s%s%s%s%s", progname,opt_d,opt_t,opt_X,opt_r,opt_R,opt_T);
> exit(1);
> }
>
>
>
>
> --
>
> Seeya,
> Paul
> --
> Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE
>
> It may look like I'm just sitting here doing nothing,
> but I'm really actively waiting for all my problems to go away.
>
> If you're not having fun, you're not doing it right!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 28 20:15:13 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.