Changed exit status of each nmh command's -version and -help switches
[mmh] / uip / dp.c
index 4e9c5cb..a66beed 100644 (file)
--- a/uip/dp.c
+++ b/uip/dp.c
@@ -74,10 +74,10 @@ main (int argc, char **argv)
                    snprintf (buf, sizeof(buf), "%s [switches] dates ...",
                        invo_name);
                    print_help (buf, switches, 1);
-                   done (1);
+                   done (0);
                case VERSIONSW:
                    print_version(invo_name);
-                   done (1);
+                   done (0);
 
                case FORMSW: 
                    if (!(form = *argp++) || *form == '-')