[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] create a convenient function to align/print option help text
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] create a convenient function to align/print option help text |
Date: |
Mon, 03 Sep 2012 00:36:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 |
On 09/02/2012 09:48 AM, Nguyễn Thái Ngọc Duy wrote:
> This is just a proof of concept. I'd like to know this approach may be
> accepted.
>
> It helps avoid manual aligning of help text, which is boring
> (e.g. chmod's --no-preserve-root does it wrong) and impossible to do
> right for shared options such as --verbose and --help.
>
> It also helps avoid misalignment in translations because translators may
> not notice that the number of spaces in such a translations has a special
> meaning.
>
> The convenient function may end up in gnulib, I don't know.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <address@hidden>
Thanks for doing that.
I really like this, but wouldn't it invalidate all the existing translations?
It seems there would be a lot of work in transitioning coreutils usage()
functions
to the scheme, but even more work munging existing translations?
cheers,
Pádraig.