5 using namespace libdcp;
10 cerr << "Syntax: " << n << " [OPTION] <DCP> <DCP>\n"
11 << " -v, --version show DVD-o-matic version\n"
12 << " -h, --help show this help\n"
14 << "The <DCP>s are the DCP directories to compare.\n";
18 main (int argc, char* argv[])
22 static struct option long_options[] = {
23 { "version", no_argument, 0, 'v'},
24 { "help", no_argument, 0, 'h'},
28 int c = getopt_long (argc, argv, "vh", long_options, &option_index);
36 cout << "dcpdiff version " << LIBDCP_VERSION << "\n";
44 if (argc <= optind || argc > (optind + 2)) {
50 DCP b (argv[optind + 1]);
52 list<string> notes = a.equals (b, EqualityFlags (LIBDCP_METADATA | MXF_BITWISE));
54 cout << "DCPs identical\n";
58 for (list<string>::iterator i = notes.begin(); i != notes.end(); ++i) {
59 cout << " " << *i << "\n";