Browse files

Must check options before checking stereo file

  • Loading branch information...
1 parent 16200f4 commit 28d897a2de78180e55aad25b74d3f5969ecf5265 @oleg-alexandrov oleg-alexandrov committed Dec 13, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/asp/Tools/stereo.cc
View
10 src/asp/Tools/stereo.cc
@@ -86,6 +86,11 @@ namespace asp {
asp::check_command_line( argc, argv, opt, general_options, all_general_options,
positional_options, positional_desc, usage, false );
+ if (!vm.count("left-input-image") || !vm.count("right-input-image") ||
+ !vm.count("left-camera-model") )
+ vw_throw( ArgumentErr() << "Missing all of the correct input files.\n\n"
+ << usage << general_options );
+
// Read the config file
try {
po::options_description cfg_options;
@@ -106,11 +111,6 @@ namespace asp {
}
asp::stereo_settings().validate();
- if (!vm.count("left-input-image") || !vm.count("right-input-image") ||
- !vm.count("left-camera-model") )
- vw_throw( ArgumentErr() << "Missing all of the correct input files.\n\n"
- << usage << general_options );
-
// If the user hasn't specified a stereo session type, we take a
// guess here based on the file suffixes.
if (opt.stereo_session_string.empty())

0 comments on commit 28d897a

Please sign in to comment.