aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/usage.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/usage.h b/include/usage.h
index 320294c8a..287d5a1c8 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2109,31 +2109,31 @@ USE_FEATURE_MDEV_CONFIG( \
2109#if ENABLE_NC_SERVER || ENABLE_NC_EXTRA 2109#if ENABLE_NC_SERVER || ENABLE_NC_EXTRA
2110#define NC_BR1 "[" 2110#define NC_BR1 "["
2111#define NC_BR2 "]" 2111#define NC_BR2 "]"
2112#define NC_OPTIONS_STR "\n\nOptions:"
2112#else 2113#else
2113#define NC_BR1 2114#define NC_BR1
2114#define NC_BR2 2115#define NC_BR2
2116#define NC_OPTIONS_STR
2115#endif 2117#endif
2116 2118
2117#define nc_trivial_usage \ 2119#define nc_trivial_usage \
2118 "[" \ 2120 NC_BR1 USE_NC_EXTRA("iw")USE_NC_SERVER("-l") NC_BR2 USE_NC_SERVER(" [-p PORT]") \
2119 NC_BR1 USE_NC_SERVER("-lp")USE_NC_EXTRA("iwf") NC_BR2 \ 2121 " [" USE_NC_EXTRA("-f FILENAME|") "{IPADDR PORTNUM}]" USE_NC_EXTRA(" [-e COMMAND]")
2120 " ["USE_NC_EXTRA("FILENAME|")"{IPADDR PORTNUM}]"USE_NC_EXTRA(" [-e COMMAND]")
2121#define nc_full_usage \ 2122#define nc_full_usage \
2122 "Netcat opens a pipe, either to IP:port\n\n" \ 2123 "Netcat opens a pipe to IP:port" USE_NC_EXTRA(" or file") \
2123 "Options:" \ 2124 NC_OPTIONS_STR \
2124 USE_NC_EXTRA( \ 2125 USE_NC_EXTRA( \
2125 "\n\t-e\t\texec rest of command line after connect\n" \ 2126 "\n\t-e\texec rest of command line after connect\n" \
2126 "\t-i SECS\t\tdelay interval for lines sent\n" \ 2127 "\t-i SECS\tdelay interval for lines sent\n" \
2127 "\t-w SECS\t\ttimeout for connect\n" \ 2128 "\t-w SECS\ttimeout for connect\n" \
2128 "\t-f filename\tuse file (ala /dev/ttyS0) instead of network" \ 2129 "\t-f file\tuse file (ala /dev/ttyS0) instead of network" \
2129 ) \ 2130 ) \
2130 USE_NC_SERVER( \ 2131 USE_NC_SERVER( \
2131 "\n\t-l\t\tlisten mode, for inbound connects\n" \ 2132 "\n\t-l\tlisten mode, for inbound connects\n" \
2132 USE_NC_EXTRA("\t\t\t(use -l twice with -e for persistent server)\n") \ 2133 USE_NC_EXTRA("\t\t(use -l twice with -e for persistent server)\n") \
2133 "\t-p PORT\t\tlocal port number" \ 2134 "\t-p PORT\tlocal port number" \
2134 ) 2135 )
2135 2136
2136
2137#define nc_notes_usage "" \ 2137#define nc_notes_usage "" \
2138 USE_NC_EXTRA( \ 2138 USE_NC_EXTRA( \
2139 "To use netcat as a terminal emulator on a serial port:\n\n" \ 2139 "To use netcat as a terminal emulator on a serial port:\n\n" \