notmuch/test/T690-command-line-args.sh
David Bremner de9baa29dc cli: change api of parse_option
The idea is to allow it (in a future commit) advance to the next argv
element to get a value
2017-07-12 17:44:15 -03:00

15 lines
300 B
Bash
Executable file

#!/usr/bin/env bash
test_description="command line arguments"
. ./test-lib.sh || exit 1
NOTMUCH_NEW > /dev/null
test_begin_subtest 'bad option to show'
notmuch show --frobnicate >& OUTPUT
cat <<EOF > EXPECTED
Unrecognized option: --frobnicate
EOF
test_expect_equal_file EXPECTED OUTPUT
test_done