diff options
author | Denis Vlasenko | 2006-10-16 01:10:28 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-16 01:10:28 +0000 |
commit | d0e70af9d1065400a3ed478393dcd3873d1cb7d8 (patch) | |
tree | 82e9c52a15ed4c24dec593834188cefcc82a8382 /include | |
parent | bf39216cc4e095a7ce9a4b33b778c903b916e18b (diff) | |
download | busybox-d0e70af9d1065400a3ed478393dcd3873d1cb7d8.zip busybox-d0e70af9d1065400a3ed478393dcd3873d1cb7d8.tar.gz |
nc: fix 2 my own buglets, and few someone else's too.
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/usage.h b/include/usage.h index 320294c..287d5a1 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2109,31 +2109,31 @@ USE_FEATURE_MDEV_CONFIG( \ #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA #define NC_BR1 "[" #define NC_BR2 "]" +#define NC_OPTIONS_STR "\n\nOptions:" #else #define NC_BR1 #define NC_BR2 +#define NC_OPTIONS_STR #endif #define nc_trivial_usage \ - "[" \ - NC_BR1 USE_NC_SERVER("-lp")USE_NC_EXTRA("iwf") NC_BR2 \ - " ["USE_NC_EXTRA("FILENAME|")"{IPADDR PORTNUM}]"USE_NC_EXTRA(" [-e COMMAND]") + NC_BR1 USE_NC_EXTRA("iw")USE_NC_SERVER("-l") NC_BR2 USE_NC_SERVER(" [-p PORT]") \ + " [" USE_NC_EXTRA("-f FILENAME|") "{IPADDR PORTNUM}]" USE_NC_EXTRA(" [-e COMMAND]") #define nc_full_usage \ - "Netcat opens a pipe, either to IP:port\n\n" \ - "Options:" \ + "Netcat opens a pipe to IP:port" USE_NC_EXTRA(" or file") \ + NC_OPTIONS_STR \ USE_NC_EXTRA( \ - "\n\t-e\t\texec rest of command line after connect\n" \ - "\t-i SECS\t\tdelay interval for lines sent\n" \ - "\t-w SECS\t\ttimeout for connect\n" \ - "\t-f filename\tuse file (ala /dev/ttyS0) instead of network" \ + "\n\t-e\texec rest of command line after connect\n" \ + "\t-i SECS\tdelay interval for lines sent\n" \ + "\t-w SECS\ttimeout for connect\n" \ + "\t-f file\tuse file (ala /dev/ttyS0) instead of network" \ ) \ USE_NC_SERVER( \ - "\n\t-l\t\tlisten mode, for inbound connects\n" \ - USE_NC_EXTRA("\t\t\t(use -l twice with -e for persistent server)\n") \ - "\t-p PORT\t\tlocal port number" \ + "\n\t-l\tlisten mode, for inbound connects\n" \ + USE_NC_EXTRA("\t\t(use -l twice with -e for persistent server)\n") \ + "\t-p PORT\tlocal port number" \ ) - #define nc_notes_usage "" \ USE_NC_EXTRA( \ "To use netcat as a terminal emulator on a serial port:\n\n" \ |