diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-27 23:40:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-27 23:40:18 +0100 |
| commit | 8276ed82237c30935962874c974e5462737fb0fb (patch) | |
| tree | aa2d8c11fe481e652c702766ee2b3e0bef96920d /src | |
| parent | b76cc13859babfd18ba528f3d61397ba284884c5 (diff) | |
Add --config option to dcpomatic2 (#1703).
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index cce7c369b..68bf20732 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1488,6 +1488,7 @@ static const wxCmdLineEntryDesc command_line_description[] = { { wxCMD_LINE_OPTION, "c", "content", "add content file / directory", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, { wxCMD_LINE_OPTION, "d", "dcp", "add content DCP", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, { wxCMD_LINE_SWITCH, "v", "version", "show DCP-o-matic version", wxCMD_LINE_VAL_NONE, wxCMD_LINE_PARAM_OPTIONAL }, + { wxCMD_LINE_OPTION, "", "config", "directory containing config.xml and cinemas.xml", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, { wxCMD_LINE_PARAM, 0, 0, "film to load or create", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, { wxCMD_LINE_NONE, "", "", "", wxCmdLineParamType (0), 0 } }; @@ -1653,6 +1654,11 @@ private: _dcp_to_add = wx_to_std (dcp); } + wxString config; + if (parser.Found (wxT("config"), &config)) { + State::override_path = wx_to_std (config); + } + return true; } |
