diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-19 22:38:38 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-19 22:38:38 +0400 |
commit | 5dbdb3bed63ab1bb0b44a398322d736aafbeb841 (patch) | |
tree | af17db9e4d0847e570893ebd5e9491d5192286d9 /t | |
parent | 49cbc11ddb10e01e569e03b300fd2b4130f1ebba (diff) | |
parent | af465af8deda8ad685f7704a2dc787845eb317ed (diff) |
Merge branch 'jc/parseopt-verify-short-name'
Add checks for a common programming mistake to assign the same
short option name to two separate options to help developers.
* jc/parseopt-verify-short-name:
parse-options: detect attempt to add a duplicate short option name
Diffstat (limited to 't')
-rwxr-xr-x | t/t1502-rev-parse-parseopt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1502-rev-parse-parseopt.sh b/t/t1502-rev-parse-parseopt.sh index 922423e7d0..ebe7c3b87c 100755 --- a/t/t1502-rev-parse-parseopt.sh +++ b/t/t1502-rev-parse-parseopt.sh @@ -19,7 +19,7 @@ sed -e 's/^|//' >expect <<\END_EXPECT | -d, --data[=...] short and long option with an optional argument | |Argument hints -| -b <arg> short option required argument +| -B <arg> short option required argument | --bar2 <arg> long option required argument | -e, --fuz <with-space> | short and long option required argument @@ -51,7 +51,7 @@ sed -e 's/^|//' >optionspec <<\EOF |d,data? short and long option with an optional argument | | Argument hints -|b=arg short option required argument +|B=arg short option required argument |bar2=arg long option required argument |e,fuz=with-space short and long option required argument |s?some short option optional argument |