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

[PATCH] cg-admin-cat ignoring -r

From
PRPavel Roskin <proski@gnu.org>
Date
Aug 16, 2005, 21:22 UTC
Message-ID
<1124227379.26240.4.camel@dv>
Hello!

cg-admin-cat ignores the argument for the "-r" option because it uses optparse incorrectly. For OPTARG to be set, "-r=" should be used instead of "-r".

Signed-off-by: Pavel Roskin <proski@gnu.org>
diff --git a/cg-admin-cat b/cg-admin-cat
--- a/cg-admin-cat
+++ b/cg-admin-cat
@@ -27,7 +27,7 @@ USAGE="cg-admin-cat [-r TREE_ID] FILE...
 
 rev=HEAD
 while optparse; do
-	if optparse -r; then
+	if optparse -r=; then
 		rev="$OPTARG"
 	else
 		optfail
-- 
Regards,
Pavel Roskin
Message 1 of 1 in “cg-admin-cat ignoring -r”
  1. cg-admin-cat ignoring -rPavel Roskin, Aug 16, 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.