wget: move help text to .c file
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 20 Mar 2011 23:37:05 +0000 (00:37 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 20 Mar 2011 23:37:05 +0000 (00:37 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/usage.src.h
networking/wget.c

index 5a725e3051c29ff601c9f63881a1463a85aeefb4..29f7b2110b71bcc14eb2cc7e61c3cbfeb49e6909 100644 (file)
@@ -4067,31 +4067,6 @@ INSERT
      "\n" \
      "\nUse 500ms to specify period in milliseconds" \
 
-#define wget_trivial_usage \
-       IF_FEATURE_WGET_LONG_OPTIONS( \
-       "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n" \
-       "       [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
-       "       [--no-check-certificate] [-U|--user-agent AGENT]" \
-                       IF_FEATURE_WGET_TIMEOUT("[-T SEC] ") " URL" \
-       ) \
-       IF_NOT_FEATURE_WGET_LONG_OPTIONS( \
-       "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT]" \
-                       IF_FEATURE_WGET_TIMEOUT("[-T SEC] ") " URL" \
-       )
-#define wget_full_usage "\n\n" \
-       "Retrieve files via HTTP or FTP\n" \
-     "\nOptions:" \
-     "\n       -s      Spider mode - only check file existence" \
-     "\n       -c      Continue retrieval of aborted transfer" \
-     "\n       -q      Quiet" \
-     "\n       -P DIR  Save to DIR (default .)" \
-       IF_FEATURE_WGET_TIMEOUT( \
-     "\n       -T SEC  Network read timeout is SEC seconds" \
-       ) \
-     "\n       -O FILE Save to FILE ('-' for stdout)" \
-     "\n       -U STR  Use STR for User-Agent header" \
-     "\n       -Y      Use proxy ('on' or 'off')" \
-
 #define which_trivial_usage \
        "[COMMAND]..."
 #define which_full_usage "\n\n" \
index bc922836a6a69101bdad419da414897397f80887..c22a76b977b1a59f2393bc255cc3536868455ef4 100644 (file)
@@ -8,6 +8,32 @@
  * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org>
  * Kuhn's copyrights are licensed GPLv2-or-later.  File as a whole remains GPLv2.
  */
+
+//usage:#define wget_trivial_usage
+//usage:       IF_FEATURE_WGET_LONG_OPTIONS(
+//usage:       "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n"
+//usage:       "       [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n"
+//usage:       "       [--no-check-certificate] [-U|--user-agent AGENT]"
+//usage:                       IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..."
+//usage:       )
+//usage:       IF_NOT_FEATURE_WGET_LONG_OPTIONS(
+//usage:       "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT]"
+//usage:                       IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..."
+//usage:       )
+//usage:#define wget_full_usage "\n\n"
+//usage:       "Retrieve files via HTTP or FTP\n"
+//usage:     "\nOptions:"
+//usage:     "\n       -s      Spider mode - only check file existence"
+//usage:     "\n       -c      Continue retrieval of aborted transfer"
+//usage:     "\n       -q      Quiet"
+//usage:     "\n       -P DIR  Save to DIR (default .)"
+//usage:       IF_FEATURE_WGET_TIMEOUT(
+//usage:     "\n       -T SEC  Network read timeout is SEC seconds"
+//usage:       )
+//usage:     "\n       -O FILE Save to FILE ('-' for stdout)"
+//usage:     "\n       -U STR  Use STR for User-Agent header"
+//usage:     "\n       -Y      Use proxy ('on' or 'off')"
+
 #include "libbb.h"
 
 //#define log_io(...) bb_error_msg(__VA_ARGS__)