diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-01-08 15:53:32 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-01-08 15:53:32 (GMT) |
commit | be7ebb248fbe7d887b44b4aecbfe80f2517d53b1 (patch) | |
tree | df693260fe94f6a8d47968d4cbac66a9476ba841 /tools/h5repack/h5repack_main.c | |
parent | feaa5bb9d54017961e325f4bc2c366fc023c2443 (diff) | |
download | hdf5-be7ebb248fbe7d887b44b4aecbfe80f2517d53b1.zip hdf5-be7ebb248fbe7d887b44b4aecbfe80f2517d53b1.tar.gz hdf5-be7ebb248fbe7d887b44b4aecbfe80f2517d53b1.tar.bz2 |
[svn-r8040] Purpose:
bug fix, code improvment
Description:
fixed a bug in the parse of chunking function
added some auxiliary functions to avoid repeated parts of the code in several places
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_main.c')
-rw-r--r-- | tools/h5repack/h5repack_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c index bfa8366..0c02894 100644 --- a/tools/h5repack/h5repack_main.c +++ b/tools/h5repack/h5repack_main.c @@ -22,8 +22,8 @@ static void usage(void); /* Examples of use: --v -i file1.h5 -o file2.h5 -t "dataset:GZIP 6" -c "dataset:2x2" --v -i file1.h5 -o file2.h5 -t "GZIP 6" +-v -i file1.h5 -o file2.h5 -f "dataset:GZIP 6" -l "dataset:2x2" +-v -i file1.h5 -o file2.h5 -f "GZIP 6" */ @@ -48,7 +48,7 @@ int main(int argc, char **argv) else if (strcmp(argv[i], "-v") == 0) { options.verbose = 1; } - else if (strcmp(argv[i], "-t") == 0) { + else if (strcmp(argv[i], "-f") == 0) { /* add the -t option */ h5repack_addfilter(argv[i+1],&options); @@ -56,7 +56,7 @@ int main(int argc, char **argv) /* jump to next */ ++i; } - else if (strcmp(argv[i], "-c") == 0) { + else if (strcmp(argv[i], "-l") == 0) { /* parse the -c option */ h5repack_addlayout(argv[i+1],&options); |