* 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:
parent
3fefe2ce73
commit
9f7c628890
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue