Thread (30 messages) flat view 30 messages, 2 authors, 2021-09-21

Re: [PATCH v2 0/6] parse-options: properly align continued usage output & related

From: Eric Sunshine <hidden>
Date: 2021-09-11 07:41:29

On Fri, Sep 10, 2021 at 11:38 AM Ævar Arnfjörð Bjarmason
[off-list ref] wrote:
This series changes usage_with_options_internal() in parse-options.c
to properly align continued "\n" usage output.

This v2 now also gets rid of the support for "" in the usage string
array. Eric Sunshine had ideas[1] for how to simplify the code in v1,
along with a suggestion that we could just get rid of the "" from
"builtin/blame.c".
To be clear, I only asked whether you really needed to add support for
embedded newlines in free-form usage strings following a "" line; I
didn't actually suggest dropping support for free-form text following
a "" line. Perhaps I didn't articulate that well enough, though, in my
review(?).

Aside: I did, however, _think_ about suggesting that free-form text
support be dropped since I only found one consumer of the feature,
however, I decided not to make that suggestion since the feature
seemed like it had potential value and the current implementation is
good enough and simple enough (though undocumented, as far as I can
tell).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help