X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fmain.c;h=9edec13b67919b4cc942dc3872dc0e39ae6038b7;hb=d733dbc7031aaa417e45c38a34a9b72813176bbd;hp=b41277ba841355a66c8f49df7f7632676a206b3d;hpb=7585b7019d5909428a477002579366a507e42b58;p=wget diff --git a/src/main.c b/src/main.c index b41277ba..9edec13b 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ /* Command line parsing. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, + 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -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