summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorLibravatar Brandon Casey <drafnel@gmail.com>2017-09-24 21:08:05 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-25 14:35:53 +0900
commita6304fa4c2f57b08ec0acea9f91c188f284f8374 (patch)
tree99d61834e5b76b3ffa3d39f3628f0ef212213201 /strbuf.h
parentparse-options: write blank line to correct output stream (diff)
downloadtgif-a6304fa4c2f57b08ec0acea9f91c188f284f8374.tar.xz
parse-options: only insert newline in help text if needed
Currently, when parse_options() produces a help message it always emits a blank line after the usage text to separate it from the options text. If the option spec does not define any switches, or only defines hidden switches that will not be displayed, then the help text will end up with two trailing blank lines instead of one. Let's defer emitting the blank line between the usage text and the options text until it is clear that the options section will not be empty. Fixes t1502.5, t1502.6. Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
0 files changed, 0 insertions, 0 deletions