* Originally contributed by
* Jeffrey C Honig <Jeffrey_C_Honig@cornell.edu>
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
extern char *mhetcdir;
char *sbackup = BACKUP_PREFIX;
-char *slink = LINK;
static struct swit switches[] = {
#define COMPSW 0
#define HELPSW 4
{ "help", 0 },
#define DEBUGSW 5
- { "debug", -5 },
+ { "debug", 5 },
{ NULL, 0 }
};
{ "context", &context },
{ "mh-sequences", &mh_seq },
{ "buildmimeproc", &buildmimeproc },
- { "faceproc", &faceproc },
{ "fileproc", &fileproc },
{ "foldprot", &foldprot },
+ { "formatproc", &formatproc },
{ "incproc", &incproc },
{ "installproc", &installproc },
{ "lproc", &lproc },
{ "mshproc", &mshproc },
{ "packproc", &packproc },
{ "postproc", &postproc },
- { "rmfproc", &rmfproc },
{ "rmmproc", &rmmproc },
{ "sendproc", &sendproc },
{ "showmimeproc", &showmimeproc },
{ "etcdir", &mhetcdir },
{ "libdir", &mhlibdir },
{ "sbackup", &sbackup },
- { "link", &slink },
{ NULL, NULL },
};
snprintf (buf, sizeof(buf), "%s [profile-components] [switches]",
invo_name);
print_help (buf, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done (0);
case COMPSW:
components = 1;
for (np = m_defs; np; np = np->n_next)
printf("%s: %s\n", np->n_name, np->n_field);
- } if (debug) {
+ } else if (debug) {
struct proc *ps;
/*
}
}
- return done (missed);
+ done (missed);
+ return 1;
}