You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Kobayashi Noritada <no...@dolphin.c.u-tokyo.ac.jp> on 2006/08/03 07:40:16 UTC

[PATCH] Fix descriptions on SYNOPSIS in manpages.

Hi,

This patch makes fixes to descriptions on SYNOPSIS in manpages for
svn{admin,dumpfilter,look,sync}.
Could you please review them?

Thanks,

-nori

[[[
Fix descriptions on SYNOPSIS in manpages.

* subversion/svnadmin/svnadmin.1
* subversion/svnlook/svnlook.1
  (SYNOPSIS): Delete "[args]" since it is described as "/path/to/repos".

* subversion/svnsync/svnsync.1
  (SYNOPSIS): Delete "[args]" since it is described as "dest-url".

* subversion/svndumpfilter/svndumpfilter.1
  (SYNOPSIS): Clarify "[args]" as "prefixes".
]]]

Re: [PATCH] Fix descriptions on SYNOPSIS in manpages.

Posted by Julian Foad <ju...@btopenworld.com>.
Kobayashi Noritada wrote:
> [[[
> Fix descriptions on SYNOPSIS in manpages.
> 
> * subversion/svnadmin/svnadmin.1
> * subversion/svnlook/svnlook.1
>   (SYNOPSIS): Delete "[args]" since it is described as "/path/to/repos".
> 
> * subversion/svnsync/svnsync.1
>   (SYNOPSIS): Delete "[args]" since it is described as "dest-url".

If the man-page needed to be fixed then the output of "svnsync --help" would 
have needed to be fixed too, although it is slightly different:

     SYNOPSIS
            svnsync command dest-url [options] [args]

     $ svnsync --help
     general usage: svnsync SUBCOMMAND DEST_URL  [ARGS & OPTIONS ...]

But [args] is used for some subcommands:

     $ svnsync --help init
     initialize (init): usage: svnsync initialize DEST_URL SOURCE_URL

So [args] represents SOURCE_URL for that subcommand.

Similarly for "svnadmin" and "svnlook", [args] is needed.


> * subversion/svndumpfilter/svndumpfilter.1
>   (SYNOPSIS): Clarify "[args]" as "prefixes".

>  .SH SYNOPSIS
>  .TP
> -\fBsvndumpfilter\fP \fIcommand\fP [\fIoptions\fP & \fIargs\fP]
> +\fBsvndumpfilter\fP \fIcommand\fP \fIprefixes\fP [\fIargs\fP]

Here your patch changes the wrong part of the help.  The clarification you 
intended to make is sort of OK - the [args] must be prefixes for the only two 
subcommands that are currently defined ("include" and "exclude") except for 
"help" - but it doesn't seem to me that it is really useful to change it here. 
  (And, like the programs above, if you change the man page in this way you 
ought to change the "svndumpfilter --help" text as well.)

So I don't think we should change any of this.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org