version information is printed to stdout

This commit is contained in:
Georg Neis 2006-03-22 14:25:21 +01:00
parent ff64ccbe17
commit 0155b7b9ff
2 changed files with 3 additions and 5 deletions

View File

@ -14,7 +14,7 @@ It supports arbitrary, user defined menu contents.
.SS Options
.TP
.B \-v
prints version information to stderr, then exits.
prints version information to stdout, then exits.
.SS Usage
.B wmiimenu
reads a list of newline-separated items from stdin and creates a menu.
@ -64,6 +64,4 @@ Like WMII_NORMCOLORS, but for the selected label.
.br
Default: #ffffff #285577 #4c7899
.SH SEE ALSO
.BR wmii (1),
.BR wmiiwm (1),
.BR wmiir (1)
.BR wmii (1)

View File

@ -235,7 +235,7 @@ main(int argc, char *argv[])
for(i = 1; (i < argc) && (argv[i][0] == '-'); i++) {
switch (argv[i][1]) {
case 'v':
fprintf(stderr, "%s", version);
fprintf(stdout, "%s", version);
exit(0);
break;
case 'a':