bug#1216: [BusyBox] bug#1216: wrong usage message for tftp
Matt Kraai
kraai at alumni.carnegiemellon.edu
Fri Sep 21 08:45:02 UTC 2001
On Fri, Sep 21, 2001 at 09:02:32AM +0200, Thomas Dahl wrote:
> When defining BB_FEATURE_VERBOSE_USAGE in the Config.h file and invoking
> the tftp function you are getting the usage text for the 0.60.0 version
> of tftp, not 0.60.1.
Thanks for pointing this out. The following patch updates the
usage information. I've committed it to the HEAD. Erik, may I
put it on the branch?
Matt
Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/usage.h,v
retrieving revision 1.62
diff -u -r1.62 usage.h
--- usage.h 2001/08/27 18:55:05 1.62
+++ usage.h 2001/09/21 14:36:55
@@ -1611,17 +1611,19 @@
#endif
#define tftp_trivial_usage \
- "command SOURCE DEST"
+ "[OPTION]... HOST [PORT]"
#define tftp_full_usage \
"Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
- "Commands:\n" \
+ "Options:\n" \
+ "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \
USAGE_TFTP_GET( \
- "\tget\tGet file from server SOURCE and store to local DEST.\n" \
+ "\t-g\tGet file.\n" \
) \
+ "\t-l FILE\tTransfer local FILE.\n" \
USAGE_TFTP_PUT( \
- "\tput\tPut local file SOURCE to server DEST.\n" \
+ "\t-p\tPut file.\n" \
) \
- "\nWhen naming a server, use the syntax \"server:file\"."
+ "\t-r FILE\tTransfer remote FILE.\n"
#define touch_trivial_usage \
"[-c] FILE [FILE ...]"
More information about the busybox
mailing list