summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath2001-10-05 04:40:37 +0000
committerGlenn L McGrath2001-10-05 04:40:37 +0000
commitad117d8a213979fae1bf6ec9162c2e998800b096 (patch)
treebfc74a10998be45c79515b34f2288702cfeed726 /include
parent24e2833cdfcba3505bbde9b56906bbcbb67aa2be (diff)
downloadbusybox-ad117d8a213979fae1bf6ec9162c2e998800b096.zip
busybox-ad117d8a213979fae1bf6ec9162c2e998800b096.tar.gz
Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.
Diffstat (limited to 'include')
-rw-r--r--include/usage.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h
index 0b095a4..9dc7fae 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1615,13 +1615,19 @@
#else
#define USAGE_TFTP_PUT(a)
#endif
+#ifdef BB_FEATURE_TFTP_BLOCKSIZE
+ #define USAGE_TFTP_BS(a) a
+#else
+ #define USAGE_TFTP_BS(a)
+#endif
#define tftp_trivial_usage \
"[OPTION]... HOST [PORT]"
#define tftp_full_usage \
"Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
"Options:\n" \
- "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \
+ "\t-l FILE\tLocal FILE.\n" \
+ "\t-r FILE\tRemote FILE.\n" \
USAGE_TFTP_GET( \
"\t-g\tGet file.\n" \
) \
@@ -1629,7 +1635,9 @@
USAGE_TFTP_PUT( \
"\t-p\tPut file.\n" \
) \
- "\t-r FILE\tTransfer remote FILE.\n"
+ USAGE_TFTP_BS( \
+ "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \
+ )
#define touch_trivial_usage \
"[-c] FILE [FILE ...]"