All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cg-clean: fix argument processing
@ 2005-11-14 20:03 Pavel Roskin
  0 siblings, 0 replies; only message in thread
From: Pavel Roskin @ 2005-11-14 20:03 UTC (permalink / raw)
  To: git; +Cc: Petr Baudis, Yann Dirson

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-14 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 20:03 [PATCH] cg-clean: fix argument processing Pavel Roskin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.