diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-12-16 15:59:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-12-16 15:59:02 +0000 |
| commit | 7e4d7d9e4f146576a63c6ab1be9bca5a79b507d9 (patch) | |
| tree | 96c0edcde9d9bcaface13ce6bbdf00f24d46619d /src/tools/dcpomatic_kdm_cli.cc | |
| parent | 7af655af72ef6259368583a917987dee6d7e4646 (diff) | |
Confirm overwrite of KDMs (#1008).
Diffstat (limited to 'src/tools/dcpomatic_kdm_cli.cc')
| -rw-r--r-- | src/tools/dcpomatic_kdm_cli.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_kdm_cli.cc b/src/tools/dcpomatic_kdm_cli.cc index f0097d7de..7cfcaa171 100644 --- a/src/tools/dcpomatic_kdm_cli.cc +++ b/src/tools/dcpomatic_kdm_cli.cc @@ -40,6 +40,7 @@ using std::list; using std::vector; using boost::shared_ptr; using boost::optional; +using boost::bind; static void help () @@ -106,6 +107,12 @@ duration_from_string (string d) exit (EXIT_FAILURE); } +static bool +always_overwrite () +{ + return true; +} + int main (int argc, char* argv[]) { boost::filesystem::path output; @@ -306,7 +313,10 @@ int main (int argc, char* argv[]) cout << "Wrote ZIP files to " << output << "\n"; } } else { - ScreenKDM::write_files (screen_kdms, output, Config::instance()->kdm_filename_format(), values); + ScreenKDM::write_files ( + screen_kdms, output, Config::instance()->kdm_filename_format(), values, + bind (&always_overwrite) + ); if (verbose) { cout << "Wrote KDM files to " << output << "\n"; |
