aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-01 22:38:18 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:01 +0100
commitfbb8f2157ccce73177ad2e0e0a7eb44c8d651db9 (patch)
tree44104b407ee0f1018e228fa52866e47d5aa17d90 /src
parent8a3c5dcc5821947d1cca51758c49d946b37990bc (diff)
indexamajig: Command line note goes in output stream
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c14
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 ) {