Ver código fonte

Do not show help on command line errors

This obfuscates the error message too much.
tags/1.1
Timo Röhling 10 anos atrás
pai
commit
e915847e73
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0
    2
      postsrsd.c

+ 0
- 2
postsrsd.c Ver arquivo

@@ -309,7 +309,6 @@ int main (int argc, char **argv)
309 309
   }
310 310
   if (domain == NULL) {
311 311
     fprintf (stderr, "%s: You must set a home domain (-d)\n", self);
312
-    show_help();
313 312
     return EXIT_FAILURE;
314 313
   }
315 314
 
@@ -333,7 +332,6 @@ int main (int argc, char **argv)
333 332
     }
334 333
   } else {
335 334
     fprintf (stderr, "%s: You must set a secret (-s)\n", self);
336
-    show_help();
337 335
     return EXIT_FAILURE;
338 336
   }
339 337
   /* Bind ports. May require privileges if the config specifies ports below 1024 */

Carregando…
Cancelar
Salvar