summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-05 14:58:19 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-05 14:58:19 +0000
commit8d012bf6205f54ecb59634376f0e53dd340e34f1 (patch)
tree602b1470931a2be97808a4a13a79dc5c732c783f /src
parentb2343f145e47de7e63446476f537425be49c8ff9 (diff)
Give an error in dcpomatic_create if no content is specified.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_create.cc8
1 files changed, 6 insertions, 2 deletions
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 {