#include <time.h>
int debugsw = 0; /* global */
-int verbsw = 0;
char *altmsg = NULL;
char *annotext = NULL;
char *distfile = NULL;
{ "verbose", 0 },
#define NVERBSW 3
{ "noverbose", 2 },
-#define WATCSW 4
- { "watch", 0 },
-#define NWATCSW 5
- { "nowatch", 2 },
-#define VERSIONSW 6
+#define VERSIONSW 4
{ "Version", 0 },
-#define HELPSW 7
+#define HELPSW 5
{ "help", 0 },
{ NULL, 0 }
};
struct stat st;
struct stat st2;
-
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = mhbasename(argv[0]);
/* read user profile/context */
arguments = getarguments(invo_name, argc, argv, 1);
argp = arguments;
- vec[vecp++] = "-library";
- vec[vecp++] = getcpy(toabsdir("+"));
-
while ((cp = *argp++)) {
if (*cp == '-') {
switch (smatch(++cp, switches)) {
print_version(invo_name);
done(1);
+ case DEBUGSW:
+ debugsw++;
+ /* fall */
case VERBSW:
- verbsw++;
- vec[vecp++] = --cp;
- continue;
case NVERBSW:
- verbsw = 0;
- vec[vecp++] = --cp;
- continue;
-
- case DEBUGSW:
- debugsw++; /* fall */
- case WATCSW:
- case NWATCSW:
vec[vecp++] = --cp;
continue;