comparison freeDiameterd/main.c @ 1302:d8c998e7c535

Fix command-line parsing
author Sebastien Decugis <sdecugis@freediameter.net>
date Sun, 18 Oct 2015 11:25:28 +0800
parents cc96a4dfb3d1
children 090390e89b1d
comparison
equal deleted inserted replaced
1301:50fb308e84f7 1302:d8c998e7c535
169 { NULL, 0, NULL, 0 } 169 { NULL, 0, NULL, 0 }
170 }; 170 };
171 171
172 /* Loop on arguments */ 172 /* Loop on arguments */
173 while (1) { 173 while (1) {
174 c = getopt_long (argc, argv, "hVc:dql:M:", long_options, &option_index); 174 c = getopt_long (argc, argv, "hVc:dql:f:F:g:", long_options, &option_index);
175 if (c == -1) 175 if (c == -1)
176 break; /* Exit from the loop. */ 176 break; /* Exit from the loop. */
177 177
178 switch (c) { 178 switch (c) {
179 case 'h': /* Print help and exit. */ 179 case 'h': /* Print help and exit. */
"Welcome to our mercurial repository"