# [PATCH] cg-admin-cat ignoring -r

1 messages from 2005-08-16 to 2005-08-16. Participants: Pavel Roskin.
Thread: https://gitlist.dev/t/1537

## Pavel Roskin, 2005-08-16 21:22

Subject: [PATCH] cg-admin-cat ignoring -r
Message-ID: <1124227379.26240.4.camel@dv>
URL: https://gitlist.dev/e/1124227379.26240.4.camel%40dv

```
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

```
