Skip to contentSkip to conversation

cg-admin-cat ignoring -r

PATCH New Pavel Roskin 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cg-admin-cat ignoring -r

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".

cg-admin-cat +1 -1
@@ -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
Signature · 2 lines
Regards,
Pavel Roskin