From 9b14ecb7eaa8ef142d29bf8c44f9c24a0484076c Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke <marijnh@gmail.com> Date: Tue, 20 Nov 2012 15:43:49 +0100 Subject: [PATCH] Make compression helper output help info when not given any files --- bin/compress | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/compress b/bin/compress index 925eee2c..de86ca1f 100755 --- a/bin/compress +++ b/bin/compress @@ -63,6 +63,8 @@ function walk(dir) { walk("lib/"); walk("mode/"); +if (!blob) help(false); + if (files.length) { console.log("Some speficied files were not found: " + files.map(function(a){return a.name;}).join(", ")); -- GitLab