projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2343f1
)
Give an error in dcpomatic_create if no content is specified.
author
Carl Hetherington
<cth@carlh.net>
Wed, 5 Mar 2014 14:58:19 +0000
(14:58 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 5 Mar 2014 14:58:19 +0000
(14:58 +0000)
src/tools/dcpomatic_create.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_create.cc
b/src/tools/dcpomatic_create.cc
index 1a4ea0717049c98ee4e4c80ed9bb60e253eb12f4..36e04120e306732ea54bba4ce68acd16d0af5300 100644
(file)
--- 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 {