Improve error message when invalid --state is used.

This commit is contained in:
Dennis Camera 2020-06-11 15:38:34 +02:00
parent 5b8ae33b4e
commit 193b1780de
2 changed files with 4 additions and 2 deletions

View file

@ -55,7 +55,8 @@ in
printf 'delete authuser %s on %s\n' "${login}" "${server}" >>"${__messages_out}"
;;
(*)
printf 'Invalid --state: %s' "${state_should}" >&2
printf 'Invalid --state: %s.\n' "${state_should}" >&2
printf 'Acceptable values are: present, absent.\n' >&2
exit 1
;;
esac

View file

@ -47,7 +47,8 @@ in
mode=0
;;
(*)
printf 'Invalid --state given: %s\n' "$state_should" >&2
printf 'Invalid --state: %s.\n' "$state_should" >&2
printf 'Acceptable values are: present, absent.\n' >&2
exit 1
esac