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

Re: Passing unused opts to every command considered harmful

From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-12-18 18:52:41 CET

On Dec 18, 2007 7:30 AM, C. Michael Pilato <cmpilato@collab.net> wrote:
> In my opinion, then, (which is now as old
> as these works I'm typing, having talked myself into it just now), there's
> no real danger in letting those global-like options exist in all
> subcommands. I would *prefer* that our usage messages group those
> separately -- call them out like global options that might not have any real
> affect on a given subcommand today. But I think we'll do just fine in
> allowing these globally-natured options to exist on all subcommands.

Patch (mostly indentation changes)

[[[
Put global options in a separate block in help output.

* subversion/libsvn_subr/opt.c
  (print_command_info2): Put a "Global options:" heading above
   global options. (Small change, but lots of reindentation.)

* subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout
  Adjust.
]]]

--dave

-- 
David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/


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

Received on Tue Dec 18 18:52:54 2007

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.