Put * in the title bar when the DCP-o-matic project is modified (#1938).
[dcpomatic.git] / src / tools / dcpomatic_kdm_cli.cc
index 9c8c16aef49b72584d7fe0fb7cf78fc171e28821..46ab47a9a4c8d256c4ef9dea22d6038211b3d9da 100644 (file)
 
 
 #include "lib/kdm_cli.h"
+#include "lib/util.h"
+#include <iostream>
 
 
 int
 main (int argc, char* argv[])
 {
-       return kdm_cli (argc, argv);
+       dcpomatic_setup_path_encoding ();
+       dcpomatic_setup ();
+
+       auto error = kdm_cli (argc, argv, [](std::string s) { std::cout << s << "\n"; });
+       if (error) {
+               std::cerr << *error << "\n";
+               exit (EXIT_FAILURE);
+       }
+
+       return 0;
 }