Don't allow `--stdout' when compressing.

committer: mfx <mfx> 980433841 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2001-01-25 14:44:01 +00:00
parent 7371c219b1
commit bc5f9fb0a3
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -229,6 +229,11 @@ void check_options(int i, int argc)
opt->backup = 1;
check_not_both(opt->to_stdout, opt->output_name != NULL, "--stdout", "-o");
if (opt->to_stdout && opt->cmd == CMD_COMPRESS)
{
fprintf(stderr,"%s: cannot use `--stdout' when compressing\n", argv0);
e_usage();
}
if (opt->to_stdout || opt->output_name)
{
if (i + 1 != argc)