#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/aliasbr.h>
-#include <h/mts.h>
#include <h/utils.h>
/*
#define LISTSW 2
{ "list", 0 },
#define NLISTSW 3
- { "nolist", 0 },
+ { "nolist", 2 },
#define NORMSW 4
{ "normalize", 0 },
#define NNORMSW 5
- { "nonormalize", 0 },
+ { "nonormalize", 2 },
#define USERSW 6
{ "user", 0 },
#define NUSERSW 7
- { "nouser", 0 },
+ { "nouser", 2 },
#define VERSIONSW 8
- { "version", 0 },
+ { "Version", 0 },
#define HELPSW 9
{ "help", 0 },
{ NULL, 0 }
char *vec[NVEC], **arguments;
struct aka *ak;
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = mhbasename(argv[0]);
/* read user profile/context */
context_read();
- mts_init(invo_name);
arguments = getarguments(invo_name, argc, argv, 1);
argp = arguments;
char *dp = NULL;
for (ap = brkstring(dp = getcpy(cp), " ", "\n"); ap && *ap; ap++)
- if ((i = alias(*ap)) != AK_OK)
+ if ((i = alias(etcpath(*ap))) != AK_OK)
adios(NULL, "aliasing error in %s - %s", *ap, akerror(i));
if (dp)
free(dp);
}
mnfree(mp);
-#if 0
- printf("%s: ", s);
- print_aka(vp ? vp : s, list, pos += strlen(s) + 1);
-#else
print_aka(vp ? vp : s, list, 0);
-#endif
if (vp)
free(vp);