[Pkg-shadow-devel] [PATCH] send --help output to stdout
xrgtn at yandex.ru
Sat Sep 5 09:47:35 UTC 2009
On 5 вер. 2009, at 02:34, Nicolas François <nicolas.francois at centraliens
> On Mon, Aug 31, 2009 at 04:08:02AM -0400, vapier at gentoo.org wrote:
>> 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.
It's the same as what the python's optparse does in its --help usage
generator. Probably you should look at optparse closer if you want to
reimplement part of its functionality. Also, there may be readymade C
implementations of it on the net.
More information about the Pkg-shadow-devel