{"thread":{"id":"2509","subject":"[PATCH] cg-clean: fix argument processing","startedAt":"2005-11-14T20:03:33Z","lastAt":"2005-11-14T20:03:33Z","messageCount":1,"participants":["Pavel Roskin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"11833","messageId":"1131998613.24084.18.camel@dv","threadId":"2509","inReplyTo":null,"subject":"[PATCH] cg-clean: fix argument processing","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-11-14T20:03:33Z","receivedAt":"2005-11-14T20:03:33Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"cg-clean was broken by the \"robustified usage checks\".  This patch\nrestores the old behavior, i.e. cg-clean reports errors if there is\nanything but switches on the command line.  Empty arguments are rejected\nnow as well.\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\ndiff --git a/cg-clean b/cg-clean\nindex f680aee..1cc1ae8 100755\n--- a/cg-clean\n+++ b/cg-clean\n@@ -44,7 +44,7 @@ while optparse; do\n \tfi\n done\n \n-[ ${#ARGS[*]} -ge 1 ] || usage\n+[ ${#ARGS[*]} = 0 ] || usage\n \n \n clean_dirs()\n\n\n-- \nRegards,\nPavel Roskin\n"}]}