From 30dfb151091962231a228a084fb5954b1a75574b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 7 Jul 2024 13:12:10 +0200 Subject: Re-fix incorrect ArgFixer. It needs to be in the front-end, not the kdm_cli() method, otherwise the tests break. --- src/lib/kdm_cli.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/kdm_cli.cc') diff --git a/src/lib/kdm_cli.cc b/src/lib/kdm_cli.cc index ee9622255..bba8fb7c0 100644 --- a/src/lib/kdm_cli.cc +++ b/src/lib/kdm_cli.cc @@ -459,8 +459,6 @@ optional kdm_cli (int argc, char* argv[], std::function 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(); @@ -515,7 +513,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:BDE:G", long_options, &option_index); + int c = getopt_long(argc, argv, "ho:K:Z:f:t:d:F:pae::zvc:S:C:T:BDE:G", long_options, &option_index); if (c == -1) { break; @@ -649,7 +647,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"); } -- cgit v1.2.3