threads / patch / 1537

patchcg-admin-cat ignoring -r

Subject: [PATCH] cg-admin-cat ignoring -r

## tl;dr

One message between Aug 16, 2005 and Aug 16, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Pavel Roskin· Aug 16, 2005, 21:22 UTC · lore
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>
Show changes to cg-admin-cat +1 −1
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

← back to recent threads