[Pkg-shadow-devel] [PATCH] send --help output to stdout

Nicolas François nicolas.francois at centraliens.net
Fri Sep 4 23:34:33 UTC 2009


Hello,

On Mon, Aug 31, 2009 at 04:08:02AM -0400, vapier at gentoo.org wrote:
> On Sunday 30 August 2009 16:33:33 Nicolas François wrote:
> > On Thu, Aug 27, 2009 at 07:26:33AM -0400, vapier at gentoo.org wrote:
> > > If someone uses the -h/--help options, the usage should not go to stderr
> > > nor should the utility exit with non-zero status.  All of the shadow
> > > utils do just this unfortunately, so convert them over to sanity.
> >
> > It's still not applied, but I agree that this should be sent to stdout.
> >
> > I will keep the prototype declaration as I have some tools complaining
> > when a function is defined with no prior declaration, and it is just
> > easier to keep the prototype than configure all the checker tools.

The patch is applied now.

> i thought about creating a common usage() function that'd take the array of 
> long options and an array of descriptions and output that so things would be 
> standardized across the utils ... but the layout of the usage output isnt 
> standardized perfectly, so i didnt want to radically change things.  but 
> perhaps that is a better route ...

This still have to be done.
It's currently only in the TODO file.

-- 
Nekral



More information about the Pkg-shadow-devel mailing list