1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-15 05:45:05 -05:00

* 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") @Option(name = "--format", usage = "Episode/Movie naming scheme", metaVar = "expression")
public String format; 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; public boolean nonStrict = false;
@Option(name = "-get-subtitles", usage = "Fetch subtitles", metaVar = "fileset") @Option(name = "-get-subtitles", usage = "Fetch subtitles", metaVar = "fileset")

View File

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