Use new pretty --help.

This commit is contained in:
Daniel Nichter
2012-01-26 12:59:48 -07:00
parent 05ac0be136
commit 6b017da6fe
3 changed files with 61 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
TESTS=72
TESTS=73
TMPFILE="$TEST_TMPDIR/parse-opts-output"
TOOL="pt-stalk"
@@ -105,6 +105,10 @@ cmd_ok \
"grep -q \"For more information, 'man pt-stalk' or 'perldoc\" $TMPFILE" \
"--help"
cmd_ok \
"grep -q ' --string-opt2[ ]*String option with a default.' $TMPFILE" \
"Command line options"
cmd_ok \
"grep -q '\-\-string-opt[ ]*(No value)' $TMPFILE" \
"Options and values after processing arguments"