Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 2/2] Move unsigned long option parsing out of pack-objects.c

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:05:27

Charles Bailey [off-list ref] writes:
From: Charles Bailey <redacted>

The unsigned long option parsing (including 'k'/'m'/'g' suffix parsing)
is more widely applicable. Add support for OPT_MAGNITUDE to
parse-options.h and change pack-objects.c use this support.

The error behavior on parse errors follows that of OPT_INTEGER.
The name of the option that failed to parse is reported with a brief
message describing the expect format for the option argument and then
the full usage message for the command invoked.

This is differs from the previous behavior for OPT_ULONG used in
s/is //; (locally fixed--no need to resend).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help