* make -non-strict option more self-explanatory
This commit is contained in:
parent
776bf1bae2
commit
cb8aa8d7d6
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue