From: Francois Fleuret Date: Mon, 10 Jun 2013 14:39:44 +0000 (+0200) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=7766227c183e8c2c328f0330ff1e2615cbaee1fa;p=mymail.git Cosmetics. --- diff --git a/mymail.c b/mymail.c index fd3b4f5..21425a5 100644 --- a/mymail.c +++ b/mymail.c @@ -1152,6 +1152,16 @@ int main(int argc, char **argv) { } } + if(error) { + print_usage(stderr); + exit(EXIT_FAILURE); + } + + if(show_help) { + print_usage(stdout); + exit(EXIT_SUCCESS); + } + /* Set all the values that may defined in the arguments, through environment variables, or hard-coded */ @@ -1175,18 +1185,6 @@ int main(int argc, char **argv) { "MYMAIL_MBOX_PATTERN", 0); - /* Start the processing */ - - if(error) { - print_usage(stderr); - exit(EXIT_FAILURE); - } - - if(show_help) { - print_usage(stdout); - exit(EXIT_SUCCESS); - } - /* mbox indexing */ if(action_index) {