Exit with code 0 on dcpomatic2_create --version (#1599).
[dcpomatic.git] / src / tools / dcpomatic_create.cc
index 1dfabd296a30390598532cd9163da76fa4b7128a..3ab84d1161dc9524e92dc6494bccd6a953ae1496 100644 (file)
@@ -76,7 +76,7 @@ main (int argc, char* argv[])
 
        if (cc.version) {
                cerr << "dcpomatic version " << dcpomatic_version << " " << dcpomatic_git_commit << "\n";
-               exit (1);
+               exit (EXIT_SUCCESS);
        }
 
        if (cc.config_dir) {
@@ -100,6 +100,10 @@ main (int argc, char* argv[])
                film->set_signed (!cc.no_sign);
                film->set_encrypted (cc.encrypt);
                film->set_three_d (cc.threed);
+               film->set_resolution (cc.fourk ? RESOLUTION_4K : RESOLUTION_2K);
+               if (cc.j2k_bandwidth) {
+                       film->set_j2k_bandwidth (*cc.j2k_bandwidth);
+               }
 
                BOOST_FOREACH (CreateCLI::Content i, cc.content) {
                        boost::filesystem::path const can = boost::filesystem::canonical (i.path);