X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=9edec13b67919b4cc942dc3872dc0e39ae6038b7;hp=8cacb893f36d74ccba329921c6a94fa7db2abccb;hb=d733dbc7031aaa417e45c38a34a9b72813176bbd;hpb=83fe87d9ed68eaa6709233ae9a76b20e8f8c3e1b diff --git a/src/main.c b/src/main.c index 8cacb893..9edec13b 100644 --- a/src/main.c +++ b/src/main.c @@ -1217,6 +1217,13 @@ WARNING: Can't reopen standard output in binary mode;\n\ if (fstat (fileno (output_stream), &st) == 0 && S_ISREG (st.st_mode)) output_stream_regular = true; } + if (!output_stream_regular && opt.convert_links) + { + printf (_("-k can be used together with -O only if outputting to \ +a regular file.\n")); + print_usage (); + exit(1); + } } #ifdef __VMS