From 2ad4929f4b3fec0413633c00364f4a6fda3e6c0c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Apr 2013 09:54:23 +0100 Subject: Merge and add option to ignore differing MXF names. --- tools/dcpdiff.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc index 7913c533..6db45a1b 100644 --- a/tools/dcpdiff.cc +++ b/tools/dcpdiff.cc @@ -17,6 +17,7 @@ help (string n) << " -V, --version show libdcp version\n" << " -h, --help show this help\n" << " -v, --verbose be verbose\n" + << " -n, --names allow differing MXF names\n" << "\n" << "The s are the DCP directories to compare.\n" << "Comparison is of metadata and content, ignoring timestamps\n" @@ -42,10 +43,11 @@ main (int argc, char* argv[]) { "version", no_argument, 0, 'V'}, { "help", no_argument, 0, 'h'}, { "verbose", no_argument, 0, 'v'}, + { "names", no_argument, 0, 'n'}, { 0, 0, 0, 0 } }; - int c = getopt_long (argc, argv, "Vhv", long_options, &option_index); + int c = getopt_long (argc, argv, "Vhvn", long_options, &option_index); if (c == -1) { break; @@ -61,6 +63,9 @@ main (int argc, char* argv[]) case 'v': verbose = true; break; + case 'n': + options.mxf_names_can_differ = true; + break; } } -- cgit v1.2.3