aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/usage.src.h25
-rw-r--r--networking/wget.c26
2 files changed, 26 insertions, 25 deletions
diff --git a/include/usage.src.h b/include/usage.src.h
index 5a725e305..29f7b2110 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -4067,31 +4067,6 @@ INSERT
4067 "\n" \ 4067 "\n" \
4068 "\nUse 500ms to specify period in milliseconds" \ 4068 "\nUse 500ms to specify period in milliseconds" \
4069 4069
4070#define wget_trivial_usage \
4071 IF_FEATURE_WGET_LONG_OPTIONS( \
4072 "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n" \
4073 " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
4074 " [--no-check-certificate] [-U|--user-agent AGENT]" \
4075 IF_FEATURE_WGET_TIMEOUT("[-T SEC] ") " URL" \
4076 ) \
4077 IF_NOT_FEATURE_WGET_LONG_OPTIONS( \
4078 "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT]" \
4079 IF_FEATURE_WGET_TIMEOUT("[-T SEC] ") " URL" \
4080 )
4081#define wget_full_usage "\n\n" \
4082 "Retrieve files via HTTP or FTP\n" \
4083 "\nOptions:" \
4084 "\n -s Spider mode - only check file existence" \
4085 "\n -c Continue retrieval of aborted transfer" \
4086 "\n -q Quiet" \
4087 "\n -P DIR Save to DIR (default .)" \
4088 IF_FEATURE_WGET_TIMEOUT( \
4089 "\n -T SEC Network read timeout is SEC seconds" \
4090 ) \
4091 "\n -O FILE Save to FILE ('-' for stdout)" \
4092 "\n -U STR Use STR for User-Agent header" \
4093 "\n -Y Use proxy ('on' or 'off')" \
4094
4095#define which_trivial_usage \ 4070#define which_trivial_usage \
4096 "[COMMAND]..." 4071 "[COMMAND]..."
4097#define which_full_usage "\n\n" \ 4072#define which_full_usage "\n\n" \
diff --git a/networking/wget.c b/networking/wget.c
index bc922836a..c22a76b97 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -8,6 +8,32 @@
8 * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org> 8 * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org>
9 * Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2. 9 * Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2.
10 */ 10 */
11
12//usage:#define wget_trivial_usage
13//usage: IF_FEATURE_WGET_LONG_OPTIONS(
14//usage: "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]\n"
15//usage: " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n"
16//usage: " [--no-check-certificate] [-U|--user-agent AGENT]"
17//usage: IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..."
18//usage: )
19//usage: IF_NOT_FEATURE_WGET_LONG_OPTIONS(
20//usage: "[-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT]"
21//usage: IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..."
22//usage: )
23//usage:#define wget_full_usage "\n\n"
24//usage: "Retrieve files via HTTP or FTP\n"
25//usage: "\nOptions:"
26//usage: "\n -s Spider mode - only check file existence"
27//usage: "\n -c Continue retrieval of aborted transfer"
28//usage: "\n -q Quiet"
29//usage: "\n -P DIR Save to DIR (default .)"
30//usage: IF_FEATURE_WGET_TIMEOUT(
31//usage: "\n -T SEC Network read timeout is SEC seconds"
32//usage: )
33//usage: "\n -O FILE Save to FILE ('-' for stdout)"
34//usage: "\n -U STR Use STR for User-Agent header"
35//usage: "\n -Y Use proxy ('on' or 'off')"
36
11#include "libbb.h" 37#include "libbb.h"
12 38
13//#define log_io(...) bb_error_msg(__VA_ARGS__) 39//#define log_io(...) bb_error_msg(__VA_ARGS__)