From e5a1a2357756793bffb61aaeca7a8ddaae137465 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Fri, 21 Sep 2001 20:20:46 +0000 Subject: [PATCH] Backport tftp usage message fix. --- busybox/applets/usage.h | 12 +++++++----- busybox/include/usage.h | 12 +++++++----- busybox/usage.h | 12 +++++++----- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/busybox/applets/usage.h b/busybox/applets/usage.h index 5f1054967..4d38c43bb 100644 --- a/busybox/applets/usage.h +++ b/busybox/applets/usage.h @@ -1570,17 +1570,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 ...]" diff --git a/busybox/include/usage.h b/busybox/include/usage.h index 5f1054967..4d38c43bb 100644 --- a/busybox/include/usage.h +++ b/busybox/include/usage.h @@ -1570,17 +1570,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 ...]" diff --git a/busybox/usage.h b/busybox/usage.h index 5f1054967..4d38c43bb 100644 --- a/busybox/usage.h +++ b/busybox/usage.h @@ -1570,17 +1570,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 ...]" -- 2.25.1