git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] cg-clean: fix argument processing

From
PRPavel Roskin <proski@gnu.org>
Date
Nov 14, 2005, 20:03 UTC
Message-ID
<1131998613.24084.18.camel@dv>

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
Message 1 of 1 in “cg-clean: fix argument processing”
  1. cg-clean: fix argument processingPavel Roskin, Nov 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.