diff options
author | Thomas White <taw@physics.org> | 2015-08-31 16:15:50 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-08-31 16:15:50 +0200 |
commit | ea0c9be77763ca695d646d4f4239c69eb68974fc (patch) | |
tree | c0fa3f1eeb891499dc625de999e91556d435c111 /src/partialator.c | |
parent | 50b3184ba52d7207c53e6e90f2d07e01ba16f66a (diff) |
partialator: Make defaults agree with docs
Diffstat (limited to 'src/partialator.c')
-rw-r--r-- | src/partialator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/partialator.c b/src/partialator.c index 5c67504b..a3fc712e 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -774,16 +774,15 @@ int main(int argc, char *argv[]) } if ( infile == NULL ) { - infile = strdup("-"); + ERROR("Please give the input filename (with -i)\n"); + return 1; } st = open_stream_for_read(infile); if ( st == NULL ) { ERROR("Failed to open input stream '%s'\n", infile); return 1; } - /* Don't free "infile", because it's needed for the scaling report */ - /* Sanitise output filename */ if ( outfile == NULL ) { outfile = strdup("partialator.hkl"); } |