Commit b151be57 authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

accepts option -header in addition to -hdr

parent 30b506a7
......@@ -99,6 +99,10 @@ int main(int argc, char **argv)
cptr+=4;
if(strncasecmp(cptr, "YES", 1)==0) {save_header=1; continue;}
else if(strncasecmp(cptr, "NO", 1)==0) {save_header=0; continue;}
} else if(strncasecmp(cptr, "HEADER=", 7)==0) {
cptr+=7;
if(strncasecmp(cptr, "YES", 1)==0) {save_header=1; continue;}
else if(strncasecmp(cptr, "NO", 1)==0) {save_header=0; continue;}
}
fprintf(stderr, "Error: invalid option '%s'.\n", argv[ai]);
return(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment