mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[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 ===
This commit is contained in:
parent
e47c44c04a
commit
2b3a491ee1
@ -170,7 +170,7 @@ static int parse_flag(const char* str_flag, unsigned *flag)
|
||||
return -1;
|
||||
}
|
||||
|
||||
*flag = fla;
|
||||
*flag = (*flag) | fla;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user