From 948a65cf39c8ce31c5adc0f24979e0cb55bc33c3 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 18 Jun 2022 08:50:45 +0200 Subject: Refactor the command line interface Select operation by its name instead of by number of the arguments. --- tests/008-help_option.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/008-help_option.sh (limited to 'tests/008-help_option.sh') diff --git a/tests/008-help_option.sh b/tests/008-help_option.sh new file mode 100644 index 0000000..d874780 --- /dev/null +++ b/tests/008-help_option.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +source ./assert.sh + +PROGRAM_EXEC="$1" + +assert "Usage" "" 0 $PROGRAM_EXEC help +assert "Usage" "" 0 $PROGRAM_EXEC backup -h +assert "Usage" "" 0 $PROGRAM_EXEC restore -h + +exit 0 -- cgit v1.2.3