* make -non-strict option more self-explanatory

This commit is contained in:
Reinhard Pointner 2013-04-16 07:32:04 +00:00
parent 776bf1bae2
commit cb8aa8d7d6
2 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class ArgumentBean {
@Option(name = "--format", usage = "Episode/Movie naming scheme", metaVar = "expression")
public String format;
@Option(name = "-non-strict", usage = "Use less strict matching")
@Option(name = "-non-strict", usage = "Enable advanced matching and more aggressive guess work")
public boolean nonStrict = false;
@Option(name = "-get-subtitles", usage = "Fetch subtitles", metaVar = "fileset")

View File

@ -885,7 +885,11 @@ public class CmdlineOperations implements CmdlineInterface {
return new ArrayList<SearchResult>(searchResults);
}
throw new Exception("Unable to auto-select search result: " + searchResults);
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);
}
}
// return first and only value