X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mymail.git;a=blobdiff_plain;f=mymail.c;h=21425a5f896c85d1c22f17715bdef0bb66252489;hp=fd3b4f5c88d80a28b7b9aa99792494bd279cd65e;hb=7766227c183e8c2c328f0330ff1e2615cbaee1fa;hpb=a5c88357a01aeb45d646f0e70891fbed394e5344 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) {