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

Re: Intended behaviour of help text for --help?

From: Karl Fogel <kfogel_at_google.com>
Date: 2006-08-22 08:20:33 CEST

Mathias Weinert <mathias.weinert@gfa-net.de> writes:
> I am wondering if the following is intended:
>
> $ svn info -m ""
> Subcommand 'info' doesn't accept option '-m [--message] arg'
> Type 'svn help info' for usage.
>
> $ svn info -m "" --help
> Subcommand 'help' doesn't accept option '-m [--message] arg'
> Type 'svn help help' for usage.
>
> IMHO the second command should result in something like
> "Option 'help' mustn't be combined with other options"
>
> BTW, in the following, a bit different, situation the message
> seems to be okay:
>
> $ svn help info -m " "
> Subcommand 'help' doesn't accept option '-m [--message] arg'
> Type 'svn help help' for usage.

No, I think these are all unintended, accidental consequences of the
way our help system is implemented. (Since help is both a subcommand
and an option, though, we'd want to be careful about how we word
suggestions to the user.)

I'm not sure this is worth fixing, but if you think it is, it
shouldn't be too hard to make a patch...

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 22 08:21:12 2006

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.