mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 02:05:56 +01:00
Add config validator tests & Improve mkvtoolnix error logging & ConfigPathValidator
This commit is contained in:
@@ -4,28 +4,33 @@ import lombok.AllArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
public enum ConfigProperty {
|
||||
CONFIG_PATH("config", "Path to config file"),
|
||||
LIBRARY("library", "Path to library"),
|
||||
SAFE_MODE("safe-mode", "Test run (no files will be changes)"),
|
||||
WINDOWS("windows", "Is operating system windows"),
|
||||
THREADS("threads", "thread count (default: 2)"),
|
||||
INCLUDE_PATTERN("include-pattern", "Include files matching pattern"),
|
||||
MKV_TOOL_NIX("mkvtoolnix", "Path to mkv tool nix installation"),
|
||||
FORCED_KEYWORDS("forcedKeywords", "Additional keywords to identify forced tracks"),
|
||||
COMMENTARY_KEYWORDS("excludedKeywords", "Additional keywords to identify commentary tracks"),
|
||||
EXCLUDE_DIRECTORY("exclude-directories", "Directories to be excluded, combines with config file"),
|
||||
HELP("help", "\"for help this is\" - Yoda"),
|
||||
VERSION("version", "Display version"),
|
||||
ARGUMENTS("arguments", "List of arguments"),
|
||||
ATTRIBUTE_CONFIG("attribute-config", "Attribute config to decide which tracks to choose when");
|
||||
CONFIG_PATH("config-path", "c", "Path to config file"),
|
||||
LIBRARY("library", "l", "Path to library"),
|
||||
SAFE_MODE("safe-mode", "s", "Test run (no files will be changes)"),
|
||||
WINDOWS("windows", null, "Is operating system windows"),
|
||||
THREADS("threads", "t", "thread count (default: 2)"),
|
||||
INCLUDE_PATTERN("include-pattern", "i", "Include files matching pattern"),
|
||||
MKV_TOOL_NIX("mkvtoolnix", "m", "Path to mkv tool nix installation"),
|
||||
FORCED_KEYWORDS("forcedKeywords", "fk", "Additional keywords to identify forced tracks"),
|
||||
COMMENTARY_KEYWORDS("commentary-keywords", "ck", "Additional keywords to identify commentary tracks"),
|
||||
EXCLUDE_DIRECTORY("exclude-directories", "e", "Directories to be excluded, combines with config file"),
|
||||
HELP("help", "h", "\"for help this is\" - Yoda"),
|
||||
VERSION("version", "v", "Display version"),
|
||||
ARGUMENTS("arguments", null, "List of arguments"),
|
||||
ATTRIBUTE_CONFIG("attribute-config", "a", "Attribute config to decide which tracks to choose when");
|
||||
|
||||
private final String property;
|
||||
private final String shortParameter;
|
||||
private final String description;
|
||||
|
||||
public String prop() {
|
||||
return property;
|
||||
}
|
||||
|
||||
public String abrv() {
|
||||
return shortParameter;
|
||||
}
|
||||
|
||||
public String desc() {
|
||||
return description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user