comparison main.c @ 670:06199003043a

Fix to match th_args API.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 01 Mar 2016 17:21:52 +0200
parents f212cbfbd93c
children c7a24acb3620
comparison
equal deleted inserted replaced
669:32c13602c091 670:06199003043a
121 }; 121 };
122 122
123 123
124 /* Arguments 124 /* Arguments
125 */ 125 */
126 static const th_optarg_t optList[] = 126 static const th_optarg optList[] =
127 { 127 {
128 { 0, '?', "help", "Show this help and be so very much verbose that it almost hurts you", OPT_NONE }, 128 { 0, '?', "help", "Show this help and be so very much verbose that it almost hurts you", OPT_NONE },
129 { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, 129 { 1, 'v', "verbose", "Be more verbose", OPT_NONE },
130 { 2, 'p', "port", "Connect to port", OPT_ARGREQ }, 130 { 2, 'p', "port", "Connect to port", OPT_ARGREQ },
131 { 3, 's', "server", "Server to connect to", OPT_ARGREQ }, 131 { 3, 's', "server", "Server to connect to", OPT_ARGREQ },