added patch to fix brief output with TCLAP_NAMESTRING defined

This commit is contained in:
Mike Smoot 2011-05-22 11:50:16 -07:00 committed by Daniel Aarno
parent 3627d9402e
commit 0980af54f2
10 changed files with 27 additions and 4 deletions

View File

@ -143,7 +143,8 @@ inline void StdOutput::failure( CmdLineInterface& _cmd,
_shortUsage( _cmd, std::cerr );
std::cerr << std::endl << "For complete USAGE and HELP type: "
<< std::endl << " " << progName << " --help"
<< std::endl << " " << progName << " "
<< Arg::nameStartString() << "help"
<< std::endl << std::endl;
}
else

View File

@ -77,7 +77,8 @@ TESTS = test1.sh \
test75.sh \
test76.sh \
test77.sh \
test78.sh
test78.sh \
test79.sh
EXTRA_DIST = $(TESTS) \
test1.out \
@ -157,6 +158,7 @@ EXTRA_DIST = $(TESTS) \
test75.out \
test76.out \
test77.out \
test78.out
test78.out \
test79.out
CLEANFILES = tmp.out

View File

@ -2,7 +2,7 @@
let "suc = 0"
let "fail = 0"
NUMTEST=67
NUMTEST=79
for (( tno = 1 ; $tno <= $NUMTEST ; tno = $tno + 1 )); do
./testCheck.sh $tno

0
tests/test63.sh Normal file → Executable file
View File

0
tests/test64.sh Normal file → Executable file
View File

0
tests/test65.sh Normal file → Executable file
View File

0
tests/test66.sh Normal file → Executable file
View File

0
tests/test67.sh Normal file → Executable file
View File

9
tests/test79.out Normal file
View File

@ -0,0 +1,9 @@
PARSE ERROR:
Required argument missing: name
Brief USAGE:
../examples/test21 [/r] /n <string> [//] [~~version] [/h]
For complete USAGE and HELP type:
../examples/test21 ~~help

11
tests/test79.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# success
../examples/test21 > tmp.out 2>&1
if cmp -s tmp.out $srcdir/test79.out; then
exit 0
else
exit 1
fi