/* flags from command line */
char *class, *comment, *status_str, *shell, *winconsoleshell, *filename;
-int reg_only, reg, verbose, nodupcheck, securereg;
+int reg_only, reg, verbose, nodupcheck, securereg, nocaps;
/* argument parsing macro */
#define argis(a, b) (!strcmp(*arg + 1, a) || !strcmp(*arg + 1, b))
FILE *input;
/* clear all flags & lists */
- reg_only = reg = verbose = lineno = nodupcheck = errors = securereg = 0;
+ reg_only = reg = verbose = lineno = nodupcheck = errors = securereg = nocaps = 0;
server = NULL;
filename = "-";
shell = DEFAULT_SHELL;
verbose++;
else if (argis("d", "nodupcheck"))
nodupcheck++;
+ else if (argis("n", "nocaps"))
+ nocaps++;
else if (argis("S", "server") || argis("db", "database"))
{
if (arg - argv < argc - 1)
qargv[U_MIDDLE] = strtrim(middle);
qargv[U_LAST] = strtrim(last);
qargv[U_MITID] = strtrim(id);
- FixCase(qargv[U_FIRST]);
- FixCase(qargv[U_MIDDLE]);
- FixCase(qargv[U_LAST]);
+ if (!nocaps)
+ {
+ FixCase(qargv[U_FIRST]);
+ FixCase(qargv[U_MIDDLE]);
+ FixCase(qargv[U_LAST]);
+ }
RemoveHyphens(qargv[U_MITID]);
if (!reg_only)
{
fprintf(stderr, " -R | -register (and add to database)\n");
fprintf(stderr, " -v | -verbose\n");
fprintf(stderr, " -d | -nodupcheck (don't check for duplicates)\n");
+ fprintf(stderr, " -n | -nocaps (don't fix capitalization of names)\n");
fprintf(stderr, " -db | -database host:port\n");
exit(1);
}