From 2b3a491ee19dc9ef1b5fcd2c2dcff296174e23b6 Mon Sep 17 00:00:00 2001 From: Peter Cao Date: Wed, 6 Aug 2008 13:16:44 -0500 Subject: [svn-r15439] Add the following patch === The following patch to h5copy.c on or near line 173 makes the tool substantially more useful... *flag = (*flag) | fla; Because the command-line option parsing permits multiple '-f' arguments, this will have the effect of or'ing the flags together so one can do someting like.... ~/tmp/hdf5-1.8.1/tools/h5copy/h5copy -i multi_ucd3d.h5 -s block5 -o gorfo -d foo -f shallow -f soft Mark C. Miller, Lawrence Livermore National Laboratory email: mailto:miller86@llnl.gov === --- tools/h5copy/h5copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/h5copy/h5copy.c b/tools/h5copy/h5copy.c index 216b2bb..a4d1675 100644 --- a/tools/h5copy/h5copy.c +++ b/tools/h5copy/h5copy.c @@ -170,7 +170,7 @@ static int parse_flag(const char* str_flag, unsigned *flag) return -1; } - *flag = fla; + *flag = (*flag) | fla; return 0; } -- cgit v0.12