* make -non-strict less strict so it never aborts when the options a fairly reasonable even though there is no apparent good match

This commit is contained in:
Reinhard Pointner 2013-05-19 16:37:52 +00:00
parent 3fefe2ce73
commit 9f7c628890
1 changed files with 5 additions and 1 deletions

View File

@ -888,7 +888,11 @@ public class CmdlineOperations implements CmdlineInterface {
if (strict) {
throw new Exception("Multiple options: Force auto-select requires non-strict matching: " + searchResults);
} else {
throw new Exception("Unable to auto-select search result: " + searchResults);
if (searchResults.size() > 5) {
throw new Exception("Unable to auto-select search result: " + searchResults);
} else {
return new ArrayList<SearchResult>(searchResults);
}
}
}