diff options
| author | Jan Sucan <jan@jansucan.com> | 2022-06-18 08:50:45 +0200 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2022-06-18 08:50:54 +0200 |
| commit | 948a65cf39c8ce31c5adc0f24979e0cb55bc33c3 (patch) | |
| tree | ae923f4594fef0abb777f63291d62530c345b229 /tests/004-unknown_option.sh | |
| parent | e1d10bea5d9fc94ba800ade1de430c7f3c0ccacd (diff) | |
Refactor the command line interface
Select operation by its name instead of by number of the arguments.
Diffstat (limited to 'tests/004-unknown_option.sh')
| -rw-r--r-- | tests/004-unknown_option.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/004-unknown_option.sh b/tests/004-unknown_option.sh new file mode 100644 index 0000000..35ba4d6 --- /dev/null +++ b/tests/004-unknown_option.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +source ./assert.sh + +PROGRAM_EXEC="$1" + +assert "Usage" "unknown option '-x'" 1 $PROGRAM_EXEC backup -x in ref out +assert "Usage" "unknown option '-x'" 1 $PROGRAM_EXEC restore -x ref out + +exit 0 |
