1 | /* |
1 | /* |
2 | * version 1.5 2001-06-26 |
2 | * version 1.5 2001-06-26 |
3 | * - slightly more robust |
3 | * slightly more robust |
4 | * - "compression" levels |
4 | * "compression" levels |
5 | * - '-I' for decode |
5 | * '-I' for decode |
6 | * - '-n' option |
6 | * '-n' option |
|
|
7 | * ident strings can not contain whitespace |
7 | * version 1.4 2001-06-24 |
8 | * version 1.4 2001-06-24 |
8 | * version 1.3 1999-09-12 |
9 | * version 1.3 1999-09-12 |
9 | * version 1.2 1995-03-01 |
10 | * version 1.2 1995-03-01 |
10 | * version 1.1 1995-05-30 |
11 | * version 1.1 1995-05-30 |
11 | * version 1.0 1994-12-13 |
12 | * version 1.0 1994-12-13 |
… | |
… | |
357 | else if (sscanf (opt, "CODEC %8lx\n", &codec) == 1) |
358 | else if (sscanf (opt, "CODEC %8lx\n", &codec) == 1) |
358 | { |
359 | { |
359 | if (verbose) |
360 | if (verbose) |
360 | fprintf (stderr, "option codec %lx\n", codec); |
361 | fprintf (stderr, "option codec %lx\n", codec); |
361 | } |
362 | } |
362 | else if (sscanf (opt, "IDENT %s\n", ident) == 1) |
363 | else if (sscanf (opt, "IDENT %[^\n]\n", ident) == 1) |
363 | { |
364 | { |
364 | if (verbose || showident) |
365 | if (verbose || showident) |
365 | fprintf (stderr, "option ident %s\n", ident); |
366 | fprintf (stderr, "option ident %s\n", ident); |
366 | } |
367 | } |
367 | else if (strcmp (opt, "END\n") == 0) |
368 | else if (strcmp (opt, "END\n") == 0) |
… | |
… | |
487 | case '9': |
488 | case '9': |
488 | complevel = 9; |
489 | complevel = 9; |
489 | break; |
490 | break; |
490 | |
491 | |
491 | case '?': |
492 | case '?': |
492 | fprintf (stderr, "encode: basex [-v] [-n] [-i id] [-1 | -7 | -9]\n"); |
493 | fprintf (stderr, "encode: basex [-v] [-n] [-i id] [-1 | -5 | -7 | -9]\n"); |
493 | fprintf (stderr, "decode: basex [-d] [-v] [-n] [-I]\n"); |
494 | fprintf (stderr, "decode: basex [-d] [-v] [-n] [-I]\n"); |
494 | break; |
495 | break; |
495 | } |
496 | } |
496 | } |
497 | } |
497 | |
498 | |