Pass the pointy hat, please:

All of --help should go to stdout, not some to stdout and some to stderr.
This commit is contained in:
kientzle 2004-07-04 18:13:01 +00:00
parent 0c1894fb23
commit 70dac6d643

View File

@ -610,7 +610,7 @@ long_help(struct bsdtar *bsdtar)
else
p = "";
fprintf(stderr, "%s%s: manipulate archive files\n", prog, p);
fprintf(stdout, "%s%s: manipulate archive files\n", prog, p);
for (msg = long_help_msg; *msg != NULL; msg++) {
for (p = *msg; p != NULL; p++) {
@ -618,7 +618,7 @@ long_help(struct bsdtar *bsdtar)
break;
else if (*p == '%') {
if (p[1] == 'p') {
fputs(prog, stderr);
fputs(prog, stdout);
p++;
} else
putchar('%');