aboutsummaryrefslogtreecommitdiff
path: root/tests/004-missing_argument_for_option.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/004-missing_argument_for_option.sh')
-rw-r--r--tests/004-missing_argument_for_option.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/004-missing_argument_for_option.sh b/tests/004-missing_argument_for_option.sh
new file mode 100644
index 0000000..071ea07
--- /dev/null
+++ b/tests/004-missing_argument_for_option.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+source ./assert.sh
+
+PROGRAM_EXEC="$1"
+
+assert_error "missing argument for option '-b'" $PROGRAM_EXEC -b
+assert_error "missing argument for option '-s'" $PROGRAM_EXEC -s
+
+exit 0