diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-07-09 00:58:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-07-09 00:58:09 +0200 |
| commit | 87aead633e6dfa256d42271040a488f1d5fe96e3 (patch) | |
| tree | ec3122028817f2c5e7e6678e670c1f826a07010b /src/lib/kdm_cli.cc | |
| parent | 3317a9b30752e2e311e7bfe36a8ce8201b07636a (diff) | |
| parent | 30dfb151091962231a228a084fb5954b1a75574b (diff) | |
Merge remote-tracking branch 'origin/main' into v2.17.x
Diffstat (limited to 'src/lib/kdm_cli.cc')
| -rw-r--r-- | src/lib/kdm_cli.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/kdm_cli.cc b/src/lib/kdm_cli.cc index 551be65e5..20cbf33e6 100644 --- a/src/lib/kdm_cli.cc +++ b/src/lib/kdm_cli.cc @@ -469,8 +469,6 @@ optional<string> kdm_cli (int argc, char* argv[], std::function<void (string)> out) try { - ArgFixer fixer(argc, argv); - boost::filesystem::path output = dcp::filesystem::current_path(); auto container_name_format = Config::instance()->kdm_container_name_format(); auto filename_format = Config::instance()->kdm_filename_format(); @@ -526,7 +524,7 @@ try { 0, 0, 0, 0 } }; - int c = getopt_long(fixer.argc(), fixer.argv(), "ho:K:Z:f:t:d:F:pae::zvc:S:C:T:E:G", long_options, &option_index); + int c = getopt_long(argc, argv, "ho:K:Z:f:t:d:F:pae::zvc:S:C:T:E:G", long_options, &option_index); if (c == -1) { break; @@ -682,7 +680,7 @@ try throw KDMCLIError ("you must specify --valid-from"); } - if (optind >= fixer.argc()) { + if (optind >= argc) { throw KDMCLIError ("no film, CPL ID or DKDM specified"); } |
