Fix --help description interpolation.

This commit is contained in:
Daniel Nichter
2012-01-19 12:20:33 -07:00
parent ba4b4f3059
commit 51b93a6235
5 changed files with 53 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
TESTS=26
TESTS=27
TMPFILE="$TEST_TMPDIR/parse-opts-output"
@@ -81,6 +81,14 @@ cmd_ok \
"grep -q \"For more information, 'man pt-stalk' or 'perldoc\" $TMPFILE" \
"--help"
# Don't interpolate.
parse_options "$T_LIB_DIR/samples/bash/po003.sh" --help
usage_or_errors "$T_LIB_DIR/samples/bash/po003.sh" >$TMPFILE 2>&1
cmd_ok \
"grep -q 'Exit if the disk is less than this %full.' $TMPFILE" \
"Don't interpolate --help descriptions"
# ############################################################################
# Done
# ############################################################################