From 273ec57bc65f791633cee5d1e455df154a7aa0e1 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Tue, 8 Jan 2019 10:16:21 +0800 Subject: [PATCH] fix typo --- bin/compress.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compress.lua b/bin/compress.lua index 5cd9886..5a78e3e 100644 --- a/bin/compress.lua +++ b/bin/compress.lua @@ -5,8 +5,9 @@ local shell=require('shell') local libcompress=require('libcompress') local args,opts=shell.parse(...) -if(args<2) then +if(#args<2) then print("Usage:\n\tcompress [-dv] ") + return end local verbose=opts["v"] and print or function() end