diff options
author | Thomas White <taw@physics.org> | 2010-10-01 22:38:18 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | fbb8f2157ccce73177ad2e0e0a7eb44c8d651db9 (patch) | |
tree | 44104b407ee0f1018e228fa52866e47d5aa17d90 | |
parent | 8a3c5dcc5821947d1cca51758c49d946b37990bc (diff) |
indexamajig: Command line note goes in output stream
-rw-r--r-- | src/indexamajig.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 742e950e..2bdeef53 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -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 ) { |