diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-16 23:24:18 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-16 23:24:18 (GMT) |
commit | 924ba14474479cacc6aa99aabb2ac81462ff6d73 (patch) | |
tree | 4a23df0c90e6e80fe37f83c17d8bb72abe49c82e /tools/h5diff/h5diff_common.c | |
parent | 208777ec89b63e27fbe34879ec43d95329301c08 (diff) | |
download | hdf5-924ba14474479cacc6aa99aabb2ac81462ff6d73.zip hdf5-924ba14474479cacc6aa99aabb2ac81462ff6d73.tar.gz hdf5-924ba14474479cacc6aa99aabb2ac81462ff6d73.tar.bz2 |
[svn-r15896] Introduced a -c flag to ignore file contents differences in the return value (return 0 id -c is present)
Introduced for h5copy validation
Tested: windows, linux
Diffstat (limited to 'tools/h5diff/h5diff_common.c')
-rw-r--r-- | tools/h5diff/h5diff_common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c index 797052c..986a0c0 100644 --- a/tools/h5diff/h5diff_common.c +++ b/tools/h5diff/h5diff_common.c @@ -31,7 +31,7 @@ const char *progname = "h5diff"; * Command-line options: The user can specify short or long-named * parameters. */ -static const char *s_opts = "hVrvqn:d:p:"; +static const char *s_opts = "hVrvqn:d:p:c"; static struct long_options l_opts[] = { { "help", no_arg, 'h' }, { "version", no_arg, 'V' }, @@ -41,6 +41,7 @@ static struct long_options l_opts[] = { { "count", require_arg, 'n' }, { "delta", require_arg, 'd' }, { "relative", require_arg, 'p' }, + { "contents", no_arg, 'c' }, { NULL, 0, '\0' } }; @@ -94,6 +95,10 @@ void parse_command_line(int argc, case 'r': options->m_report = 1; break; + case 'c': + /* ignore graph comparison in return value */ + options->m_no_contents = 1; + break; case 'd': options->d=1; @@ -322,6 +327,7 @@ void usage(void) printf(" -r, --report Report mode. Print differences\n"); printf(" -v, --verbose Verbose mode. Print differences, list of objects\n"); printf(" -q, --quiet Quiet mode. Do not do output\n"); + printf(" -c, --contents Ignore graph contents differences in return value\n"); printf(" -n C, --count=C Print differences up to C number\n"); |