Blame SOURCES/graphviz-2.30.1-prune-help.patch

a2d586
diff -up graphviz-2.30.1/contrib/prune/prune.c.orig10 graphviz-2.30.1/contrib/prune/prune.c
a2d586
--- graphviz-2.30.1/contrib/prune/prune.c.orig10	2013-02-14 14:27:39.000000000 +0100
a2d586
+++ graphviz-2.30.1/contrib/prune/prune.c	2013-07-12 13:35:44.315004975 +0200
a2d586
@@ -128,7 +128,11 @@ int main(int argc, char **argv)
a2d586
 		break;
a2d586
 	    }
a2d586
 	case '?':
a2d586
-	    if (isprint(optopt)) {
a2d586
+	    if (optopt == '?')
a2d586
+	    {
a2d586
+		help_message(progname);
a2d586
+		exit(EXIT_SUCCESS);
a2d586
+	    } else if (isprint(optopt)) {
a2d586
 		fprintf(stderr, "Unknown option `-%c'.\n", optopt);
a2d586
 	    } else {
a2d586
 		fprintf(stderr, "Unknown option character `\\x%X'.\n",
a2d586
diff -up graphviz-2.30.1/contrib/prune/prune.1.orig10 graphviz-2.30.1/contrib/prune/prune.1
a2d586
--- graphviz-2.30.1/contrib/prune/prune.1.orig10	2013-02-14 14:27:39.000000000 +0100
a2d586
+++ graphviz-2.30.1/contrib/prune/prune.1	2013-07-12 13:45:30.544918729 +0200
a2d586
@@ -20,6 +20,12 @@ prune \- Prune directed graphs
a2d586
 .BI \-N " attrspec"
a2d586
 ]
a2d586
 [
a2d586
+.B \-v
a2d586
+]
a2d586
+[
a2d586
+.BR \- ( h | ? )
a2d586
+]
a2d586
+[
a2d586
 .I files ...
a2d586
 ]
a2d586
 .SH DESCRIPTION
a2d586
@@ -54,6 +60,12 @@ pruned node.
a2d586
 .I attrspec
a2d586
 is a string of the form
a2d586
 .IR attr "=" value.
a2d586
+.TP
a2d586
+.B \-v
a2d586
+Verbose output.
a2d586
+.TP
a2d586
+.BR \-h " "\-?
a2d586
+Prints the usage and exits.
a2d586
 
a2d586
 .SH EXAMPLES
a2d586
 An input graph