mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-11 05:04:41 -04:00
added patch to fix brief output with TCLAP_NAMESTRING defined
This commit is contained in:
parent
3627d9402e
commit
0980af54f2
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
0
tests/test63.sh
Normal file → Executable file
0
tests/test64.sh
Normal file → Executable file
0
tests/test64.sh
Normal file → Executable file
0
tests/test65.sh
Normal file → Executable file
0
tests/test65.sh
Normal file → Executable file
0
tests/test66.sh
Normal file → Executable file
0
tests/test66.sh
Normal file → Executable file
0
tests/test67.sh
Normal file → Executable file
0
tests/test67.sh
Normal file → Executable file
9
tests/test79.out
Normal file
9
tests/test79.out
Normal 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
11
tests/test79.sh
Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user