* more checking in case the user did mess up the cmdline call

This commit is contained in:
Reinhard Pointner 2013-09-17 17:30:14 +00:00
parent dd3f73e6ef
commit a924855da0
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ if (tryQuietly{ !(ut_state ==~ ut_state_allow) }) {
} }
// check ut mode vs standalone mode // check ut mode vs standalone mode
if (args.size() > 0 && (tryQuietly{ ut_dir }?.size() > 0 || tryQuietly{ ut_file }?.size() > 0)) { if ((args.size() > 0 && (tryQuietly{ ut_dir }?.size() > 0 || tryQuietly{ ut_file }?.size() > 0)) || (args.size() == 0 && (tryQuietly{ ut_dir } == null || tryQuietly{ ut_file } == null))) {
throw new Exception("Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both") throw new Exception("Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both")
} }