mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-08 03:40:21 -04:00

This allows exceptions for parse errors to be propagated to the caller. Exiting the program in parse is a bad idea generally, as we have no way of knowing what cleanup needs to be done in the main program.
13 lines
194 B
Bash
Executable File
13 lines
194 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Checks that parsing exceptions are properly
|
|
# propagated to the caller.
|
|
../examples/test18 --bob > tmp.out 2>&1
|
|
|
|
if cmp -s tmp.out $srcdir/test69.out; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|
|
|