Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Mon, 10 Jun 2013 14:39:44 +0000 (16:39 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 10 Jun 2013 14:39:44 +0000 (16:39 +0200)
mymail.c

index fd3b4f5..21425a5 100644 (file)
--- 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) {