Commit: 0cbf53fa013a73364442d17c58031f83d6457e82 Parent: 64e7a0df11f5ad336d9b361752235686abc6d24f Author: Klemens Nanni Date: Sat, 12 Mar 2016 18:16:21 +0100 Fail properly on missing arguments Diffstat:
M | tpm | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tpm b/tpm @@ -106,7 +106,8 @@ show() { ## Parse input -[ $# -gt 2 ] && abort " Too many arguments." +[ ${#} -eq 0 ] || [ ${#} -gt 2 ] \ + && abort "Invalid number of arguments. See 'tpm help'." case "${1}" in insert|list|remove|show)