GetOpt formatting improvements

Johan Tibell johan.tibell at gmail.com
Mon Jun 30 02:00:00 EDT 2008


On Sun, Jun 29, 2008 at 11:46 PM, Duncan Coutts
<duncan.coutts at worc.ox.ac.uk> wrote:
> So if people think this is sensible I'll send three patches:
>     1. word-wrap the description to fit in 80 columns
>     2. use less padding between columns
>     3. omit the args on short options when there is also a
>        corresponding long option

What does GNU getopt do in all these cases? I'd prefer if the programs
I use on the command line are consistent in their `--help' display and
GNU getopt seems to be the standard here. Trying to follow what other
people do also makes shell scripting easier.

-- Johan


More information about the Libraries mailing list