From 09471c55b24d5e69359675fe669397f031aa62d3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 3 Mar 2025 00:17:27 +0100 Subject: Preparation for offering command in the encode CLI. --- src/lib/encode_cli.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib/encode_cli.cc') diff --git a/src/lib/encode_cli.cc b/src/lib/encode_cli.cc index d7c4541cb..c321d5014 100644 --- a/src/lib/encode_cli.cc +++ b/src/lib/encode_cli.cc @@ -66,7 +66,9 @@ using boost::optional; static void help(function out) { - out(fmt::format("Syntax: {} [OPTION] []\n", program_name)); + out(fmt::format("Syntax: {} [OPTION] [COMMAND] []\n", program_name)); + out("Commands:\n"); + out("make-dcp make DCP from the given film; default if no other command is specified\n"); out(variant::insert_dcpomatic(" -v, --version show %1 version\n")); out(" -h, --help show this help\n"); out(" -f, --flags show flags passed to C++ compiler on build\n"); @@ -270,6 +272,7 @@ encode_cli(int argc, char* argv[], function out, function export_format; optional export_filename; bool hints = false; + string command = "make-dcp"; /* This makes it possible to call getopt several times in the same executable, for tests */ optind = 0; @@ -360,6 +363,11 @@ encode_cli(int argc, char* argv[], function out, function