From: Emden R. Gansner Date: Fri, 12 Jul 2013 17:20:02 +0000 (-0400) Subject: Fix bug 2306. X-Git-Tag: LAST_LIBGRAPH~32^2~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3febbc2d2a6ff93bb88c59b17464446e8a165a1c;p=graphviz Fix bug 2306. --- diff --git a/contrib/prune/prune.1 b/contrib/prune/prune.1 index fb7cb6edf..aba40be3f 100644 --- a/contrib/prune/prune.1 +++ b/contrib/prune/prune.1 @@ -20,6 +20,12 @@ prune \- Prune directed graphs .BI \-N " attrspec" ] [ +.B \-v +] +[ +.BR \- ( h | ? ) +] +[ .I files ... ] .SH DESCRIPTION @@ -54,7 +60,12 @@ pruned node. .I attrspec is a string of the form .IR attr "=" value. - +.TP +.B \-v +Verbose output. +.TP +.BR \-h " "\-? +Prints the usage and exits. .SH EXAMPLES An input graph .I test.gv diff --git a/contrib/prune/prune.c b/contrib/prune/prune.c index d885577a3..89d615dcb 100644 --- a/contrib/prune/prune.c +++ b/contrib/prune/prune.c @@ -128,7 +128,10 @@ int main(int argc, char **argv) break; } case '?': - if (isprint(optopt)) { + if (optopt == '?') { + help_message(progname); + exit(EXIT_SUCCESS); + } else if (isprint(optopt)) { fprintf(stderr, "Unknown option `-%c'.\n", optopt); } else { fprintf(stderr, "Unknown option character `\\x%X'.\n", @@ -253,6 +256,8 @@ Usage: %s [options] []\n\ \n\ Options:\n\ -h : Print this message\n\ + -? : Print this message\n\ + -v : Verbose\n\ -n : Name node to prune.\n\ -N : Attribute specification to apply to pruned nodes\n\ \n\