Commit fbb8f215 authored by Thomas White's avatar Thomas White
Browse files

indexamajig: Command line note goes in output stream

parent 8a3c5dcc
......@@ -575,13 +575,6 @@ int main(int argc, char *argv[])
}
/* Start by writing the entire command line to stdout */
printf("Command line:");
for ( i=0; i<argc; i++ ) {
printf(" %s", argv[i]);
}
printf("\n");
if ( filename == NULL ) {
filename = strdup("-");
}
......@@ -678,6 +671,13 @@ int main(int argc, char *argv[])
}
free(pdb);
/* Start by writing the entire command line to stdout */
fprintf(ofh, "Command line:");
for ( i=0; i<argc; i++ ) {
fprintf(ofh, " %s", argv[i]);
}
printf("\n");
/* Get first filename and use it to set up the indexing */
rval = fgets(prepare_line, 1023, fh);
if ( rval == NULL ) {
......
Supports Markdown
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