diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-08-09 10:03:59 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-08-09 10:03:59 +0200 |
| commit | c38bdbef4f3a5888948903247532fc8cf4284c00 (patch) | |
| tree | 2a0886414037b61020340bfaedaddb8b80d9421f /src/bin | |
| parent | 0eceb4494c23d141ddf242209b92f07bc942b437 (diff) | |
opj_decompress: document -quiet option, and remove spurious newline output
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/opj_decompress.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index e2d8cbde..848167ba 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -237,6 +237,8 @@ static void decode_help_display(void) fprintf(stdout, " -threads <num_threads>\n" " Number of threads to use for decoding.\n"); } + fprintf(stdout, " -quiet\n" + " Disable output from the library and other output.\n"); /* UniPG>> */ #ifdef USE_JPWL fprintf(stdout, " -W <options>\n" @@ -1352,7 +1354,9 @@ int main(int argc, char **argv) /*Decoding image one by one*/ for (imageno = 0; imageno < num_images ; imageno++) { - fprintf(stderr, "\n"); + if (!parameters.quiet) { + fprintf(stderr, "\n"); + } if (img_fol.set_imgdir == 1) { if (get_next_file(imageno, dirptr, &img_fol, ¶meters)) { |
