[Pkg-shadow-devel] [PATCH] send --help output to stdout
Mike Frysinger
vapier at gentoo.org
Mon Aug 31 08:08:02 UTC 2009
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.
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 ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20090831/71cbea22/attachment.pgp>
More information about the Pkg-shadow-devel
mailing list