DORMANTno replies

[PATCH] cg-admin-cat ignoring -r

From: Pavel Roskin <hidden>
Date: 2016-06-15 22:42:04
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help