From 8d012bf6205f54ecb59634376f0e53dd340e34f1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 5 Mar 2014 14:58:19 +0000 Subject: Give an error in dcpomatic_create if no content is specified. --- src/tools/dcpomatic_create.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index 1a4ea0717..36e04120e 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -148,8 +148,7 @@ main (int argc, char* argv[]) } if (!content_ratio) { - cerr << "Missing required option --content-ratio.\n"; - help (argv[0]); + cerr << argv[0] << ": missing required option --content-ratio.\n"; exit (EXIT_FAILURE); } @@ -157,6 +156,11 @@ main (int argc, char* argv[]) container_ratio = content_ratio; } + if (optind == argc) { + cerr << argv[0] << ": no content specified.\n"; + exit (EXIT_FAILURE); + } + ui_signaller = new SimpleUISignaller (); try { -- cgit v1.2.3