diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-12-28 11:52:13 +0100 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-12-31 08:26:48 +0100 |
| commit | e34296bbaa3b80a9c5c1bf6dba3ada28016f03de (patch) | |
| tree | 88c4302c93ee9c0ef8946a0fc305774c4d7d22be /tests/005-missing_argument_for_option.sh | |
| parent | 9280ff2c747a5a59f0a6e0cc6335b24de62cacc9 (diff) | |
Use options instead of positional arguments for file paths
Diffstat (limited to 'tests/005-missing_argument_for_option.sh')
| -rw-r--r-- | tests/005-missing_argument_for_option.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/005-missing_argument_for_option.sh b/tests/005-missing_argument_for_option.sh index aa7a899..b519513 100644 --- a/tests/005-missing_argument_for_option.sh +++ b/tests/005-missing_argument_for_option.sh @@ -4,10 +4,10 @@ source ./assert.sh PROGRAM_EXEC="$1" -assert "Usage" "missing argument for option '-b'" 1 $PROGRAM_EXEC backup -b -assert "Usage" "missing argument for option '-s'" 1 $PROGRAM_EXEC backup -s +assert "Usage" "missing argument for option '-B'" 1 $PROGRAM_EXEC backup -B +assert "Usage" "missing argument for option '-S'" 1 $PROGRAM_EXEC backup -S -assert "Usage" "missing argument for option '-b'" 1 $PROGRAM_EXEC restore -b -assert "Usage" "missing argument for option '-s'" 1 $PROGRAM_EXEC restore -s +assert "Usage" "missing argument for option '-B'" 1 $PROGRAM_EXEC restore -B +assert "Usage" "missing argument for option '-S'" 1 $PROGRAM_EXEC restore -S exit 0 |
