# [PATCH] cg-clean: fix argument processing

1 messages from 2005-11-14 to 2005-11-14. Participants: Pavel Roskin.
Thread: https://gitlist.dev/t/2509

## Pavel Roskin, 2005-11-14 20:03

Subject: [PATCH] cg-clean: fix argument processing
Message-ID: <1131998613.24084.18.camel@dv>
URL: https://gitlist.dev/e/1131998613.24084.18.camel%40dv

```
cg-clean was broken by the "robustified usage checks".  This patch
restores the old behavior, i.e. cg-clean reports errors if there is
anything but switches on the command line.  Empty arguments are rejected
now as well.

Signed-off-by: Pavel Roskin <proski@gnu.org>

diff --git a/cg-clean b/cg-clean
index f680aee..1cc1ae8 100755
--- a/cg-clean
+++ b/cg-clean
@@ -44,7 +44,7 @@ while optparse; do
 	fi
 done
 
-[ ${#ARGS[*]} -ge 1 ] || usage
+[ ${#ARGS[*]} = 0 ] || usage
 
 
 clean_dirs()


-- 
Regards,
Pavel Roskin

```
