-void usage() {
- printf("Usage: %s [global-options] command [command-options-and-arguments]\n"
- "where global-options are -v, -h, etc.\n"
- "where command is one of send, receive, chat, resolve.\n"
- "where command-options-and-arguments depend on the specific command.\n\n"
- "send <host> <port> <filename>\n"
- "receive <host> <port> <size> <filename>\n"
- "chat listen <port>\n"
- "chat connect <host> <port>\n"
- "resolve [hosts ...]\n",
- progname);
+void usage () {
+ fprintf(stderr,
+ "Usage: %s [global-options] command [arguments...]\n"
+ "where global-options are -v, -h, etc.\n"
+ "where command is one of send, receive, chat, resolve.\n"
+ "where arguments depend on the specific command.\n\n"
+ "send <port> <filename>\n"
+ "receive <host> <port> <size> <filename>\n"
+ "chat listen <port>\n"
+ "chat connect <host> <port>\n"
+ "resolve [hosts ...]\n",
+ progname);