Update Kaleb's changes.

pull/60/head
John Blixt 2017-06-06 10:10:22 -06:00
parent 80044f0f2b
commit 2193067691
1 changed files with 16 additions and 5 deletions

View File

@ -31,21 +31,32 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
int ret; int ret = 0;
int option; int option = 0;
int i; int ignoreIn = 0;
int ignoreOut = 0;
int long_index = 0; int long_index = 0;
int i;
if (argc == 1) { if (argc == 1) {
printf("Main Help.\n"); printf("Main Help.\n");
wolfCLU_help(); wolfCLU_help();
} }
/* Set ignore variables for -in and -out files */
ret = wolfCLU_checkForArg("-in", 3, argc, argv);
if (ret > 0) {
ignoreIn = ret + 1;
}
ret = wolfCLU_checkForArg("-out", 4, argc, argv);
if (ret > 0) {
ignoreOut = ret + 1;
}
/* flexibility: allow users to input any CAPS or lower case, /* flexibility: allow users to input any CAPS or lower case,
* we will do all processing on lower case only. */ * we will do all processing on lower case only. */
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
/* Case sensitive systems. */ if (i != ignoreIn && i != ignoreOut) {
if (!(i != 4 || i != 6)) {
convert_to_lower(argv[i], (int) XSTRLEN(argv[i])); convert_to_lower(argv[i], (int) XSTRLEN(argv[i]));
} }
} }