From 3be34309e3274cd6996e4257dd3df7307c8dee3d Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Fri, 21 Sep 2001 14:42:30 +0000 Subject: [PATCH] Fix tftp usage information (closes: #1216). --- applets/usage.h | 12 +++++++----- include/usage.h | 12 +++++++----- usage.h | 12 +++++++----- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/applets/usage.h b/applets/usage.h index d825131e1..f504ac1b8 100644 --- a/applets/usage.h +++ b/applets/usage.h @@ -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 ...]" diff --git a/include/usage.h b/include/usage.h index d825131e1..f504ac1b8 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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 ...]" diff --git a/usage.h b/usage.h index d825131e1..f504ac1b8 100644 --- a/usage.h +++ b/usage.h @@ -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 ...]"