diff options
| author | Antonin Descampe <antonin@gmail.com> | 2010-10-21 09:53:13 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2010-10-21 09:53:13 +0000 |
| commit | c5151996748098cbc0983afc5afa7498a3445d05 (patch) | |
| tree | 9e044a201f3470371372927303a6c2f984e83b8f /codec | |
| parent | b6102e207cdb5a7dd89494eee9628fc844f7f655 (diff) | |
fixed help display (patch from winfried)
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/image_to_j2k.c | 5 | ||||
| -rw-r--r-- | codec/j2k_dump.c | 4 | ||||
| -rw-r--r-- | codec/j2k_to_image.c | 5 |
3 files changed, 6 insertions, 8 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c index 793fd2b0..16f1d58d 100644 --- a/codec/image_to_j2k.c +++ b/codec/image_to_j2k.c @@ -1411,9 +1411,8 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters, } }else{ if((parameters->infile[0] == 0) || (parameters->outfile[0] == 0)) { - fprintf(stderr, "Error: One of the options; -i or -ImgDir must be specified\n"); - fprintf(stderr, "Error: When using -i; -o must be used\n"); - fprintf(stderr, "usage: image_to_j2k -i image-file -o j2k/jp2-file (+ options)\n"); + fprintf(stderr, "Example: %s -i image.ppm -o image.j2k\n",argv[0]); + fprintf(stderr, " Try: %s -h\n",argv[0]); return 1; } } diff --git a/codec/j2k_dump.c b/codec/j2k_dump.c index f734f86f..8b567c55 100644 --- a/codec/j2k_dump.c +++ b/codec/j2k_dump.c @@ -274,8 +274,8 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters,i } }else{ if((parameters->infile[0] == 0) ) { - fprintf(stderr, "Error: One of the options -i or -ImgDir must be specified\n"); - fprintf(stderr, "usage: image_to_j2k -i *.j2k/jp2/j2c (+ options)\n"); + fprintf(stderr, "Example: %s -i image.j2k\n",argv[0]); + fprintf(stderr, " Try: %s -h\n",argv[0]); return 1; } } diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c index 9c6ec8be..6a1da8f1 100644 --- a/codec/j2k_to_image.c +++ b/codec/j2k_to_image.c @@ -478,9 +478,8 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters,i } }else{ if((parameters->infile[0] == 0) || (parameters->outfile[0] == 0)) { - fprintf(stderr, "Error: One of the options -i or -ImgDir must be specified\n"); - fprintf(stderr, "Error: When using -i, -o must be used\n"); - fprintf(stderr, "usage: image_to_j2k -i *.j2k/jp2/j2c -o *.pgm/ppm/pnm/pgx/bmp/tif/raw/tga(+ options)\n"); + fprintf(stderr, "Example: %s -i image.j2k -o image.pgm\n",argv[0]); + fprintf(stderr, " Try: %s -h\n",argv[0]); return 1; } } |
