diff options
author | Brandon Casey <drafnel@gmail.com> | 2017-09-24 21:08:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-25 14:35:50 +0900 |
commit | c97ee171a6b5a7e41234d46341b496146fa08bf1 (patch) | |
tree | 8a4817d7c870c98c622c23a90cfe8927d742ce5b /t/t4013/diff.diff_-r_--stat_initial..side | |
parent | git-rebase: don't ignore unexpected command line arguments (diff) | |
download | tgif-c97ee171a6b5a7e41234d46341b496146fa08bf1.tar.xz |
t0040,t1502: Demonstrate parse_options bugs
When the option spec contains no switches or only hidden switches,
parse_options will emit an extra blank line at the end of help output so
that the help text will end in two blank lines instead of one.
When parse_options produces internal help output after an error has
occurred it will emit blank lines within the usage string to stdout
instead of stderr.
Update t/helper/test-parse-options.c to have a description body in the
usage string to exercise this second bug and mark tests as failing in
t0040.
Add tests to t1502 to demonstrate both of these problems.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_-r_--stat_initial..side')
0 files changed, 0 insertions, 0 deletions