diff options
author | Glenn L McGrath | 2001-10-05 04:40:37 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-10-05 04:40:37 +0000 |
commit | ad117d8a213979fae1bf6ec9162c2e998800b096 (patch) | |
tree | bfc74a10998be45c79515b34f2288702cfeed726 /applets | |
parent | 24e2833cdfcba3505bbde9b56906bbcbb67aa2be (diff) | |
download | busybox-ad117d8a213979fae1bf6ec9162c2e998800b096.zip busybox-ad117d8a213979fae1bf6ec9162c2e998800b096.tar.gz |
Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.
Diffstat (limited to 'applets')
-rw-r--r-- | applets/usage.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/applets/usage.h b/applets/usage.h index 0b095a4..9dc7fae 100644 --- a/applets/usage.h +++ b/applets/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 ...]" |