[pacman-dev] [PATCH] Improve --help switch output for pacman contrib and pacman scripts

Allan McRae allan at archlinux.org
Tue Nov 12 00:28:41 EST 2013


On 12/11/13 04:37, Jason St. John wrote:
> On Sun, Nov 10, 2013 at 8:24 AM, Allan McRae <allan at archlinux.org> wrote:
>> On 08/11/13 17:53, Jason St. John wrote:
>>> Unify the formatting of the --help switch for pacman utils, if it exists.
>>> All of the pacman utils will now output help text using the following
>>> format:
>>>
>>>   util-name (pacman) v<pacman version>
>>>
>>>   one line description of util's purpose
>>>
>>>   Usage: util-name [options]
>>>
>>>     -b, --bar      whatever --bar does
>>>     -f, --foo      whatever --foo does
>>>     -h, --help     display this help message
>>>
>>> Reported-by: Karol Błażewicz <karol.blazewicz at gmail.com>
>>> Signed-off-by: Jason St. John <jstjohn at purdue.edu>
>>> ---
>>> This patch is analogous to commit a86015f except this one deals with pacman
>>> contrib and pacman scripts instead of pacman utils.
>>>
>>> Note:
>>> This is a resubmit based on Andrew's feedback on the ML here:
>>> https://mailman.archlinux.org/pipermail/pacman-dev/2013-October/018142.html
>>>
>>
>> <snip>
>>
>>> -    -m, --move <dir>      move candidate packages to 'movedir'.
>>> +    -m, --move <dir>      move candidate packages to "movedir".
>>
>> Why switch to double quotes here?
>>
>> A
>>
>>
> 
> Because double quotes is more grammatically correct.
> 

Ah - America.  The land of stupid quoting!

I'll accept this patch and then change it so that it is DIR in capital
letters and not quoted in the output (which seems to be the adopted
standard from the utilities I scanned).

Allan



More information about the pacman-dev mailing list