Show output and progress with -P in lrz compatibility mode.

This commit is contained in:
Con Kolivas 2022-02-27 21:18:47 +11:00
parent f0c31e7ebb
commit 74814b3183

4
main.c
View file

@ -69,7 +69,7 @@ static rzip_control base_control, local_control, *control;
static void usage(bool compat)
{
print_output("lrz%s version %s\n", compat ? "" : "ip", PACKAGE_VERSION);
print_output("Copyright (C) Con Kolivas 2006-2021\n");
print_output("Copyright (C) Con Kolivas 2006-2022\n");
print_output("Based on rzip ");
print_output("Copyright (C) Andrew Tridgell 1998-2003\n\n");
print_output("Usage: lrz%s [options] <file...>\n", compat ? "" : "ip");
@ -561,7 +561,7 @@ int main(int argc, char *argv[])
}
}
if (compat)
if (compat && !SHOW_PROGRESS)
control->flags &= ~FLAG_OUTPUT;
argc -= optind;