* make sure people don't confuse --output with --format
This commit is contained in:
parent
9e5bdf7773
commit
16facbde0c
|
@ -1,7 +1,5 @@
|
|||
|
||||
package net.sourceforge.filebot.cli;
|
||||
|
||||
|
||||
import static java.util.Collections.*;
|
||||
import static net.sourceforge.tuned.FileUtilities.*;
|
||||
|
||||
|
@ -17,7 +15,6 @@ import org.kohsuke.args4j.Argument;
|
|||
import org.kohsuke.args4j.Option;
|
||||
import org.kohsuke.args4j.spi.ExplicitBooleanOptionHandler;
|
||||
|
||||
|
||||
public class ArgumentBean {
|
||||
|
||||
@Option(name = "-rename", usage = "Rename episode/movie files", metaVar = "fileset")
|
||||
|
@ -59,7 +56,7 @@ public class ArgumentBean {
|
|||
@Option(name = "-check", usage = "Create/Check verification file", metaVar = "fileset")
|
||||
public boolean check;
|
||||
|
||||
@Option(name = "--output", usage = "Output path / format", metaVar = "folder/file/format")
|
||||
@Option(name = "--output", usage = "Output path", metaVar = "folder")
|
||||
public String output;
|
||||
|
||||
@Option(name = "--encoding", usage = "Output character encoding", metaVar = "[UTF-8, windows-1252, GB18030, etc]")
|
||||
|
@ -122,32 +119,26 @@ public class ArgumentBean {
|
|||
@Argument
|
||||
public List<String> arguments;
|
||||
|
||||
|
||||
public boolean runCLI() {
|
||||
return rename || getSubtitles || getMissingSubtitles || check || list || mediaInfo || extract || script != null;
|
||||
}
|
||||
|
||||
|
||||
public boolean printVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
|
||||
public boolean printHelp() {
|
||||
return help;
|
||||
}
|
||||
|
||||
|
||||
public boolean clearCache() {
|
||||
return clearCache;
|
||||
}
|
||||
|
||||
|
||||
public boolean clearUserData() {
|
||||
return clearPrefs;
|
||||
}
|
||||
|
||||
|
||||
public List<File> getFiles(boolean resolveFolders) {
|
||||
if (arguments == null || arguments.isEmpty()) {
|
||||
return emptyList();
|
||||
|
@ -173,12 +164,10 @@ public class ArgumentBean {
|
|||
return files;
|
||||
}
|
||||
|
||||
|
||||
public Locale getLocale() {
|
||||
return new Locale(lang);
|
||||
}
|
||||
|
||||
|
||||
public Level getLogLevel() {
|
||||
return Level.parse(log.toUpperCase());
|
||||
}
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
^bad$
|
||||
^BDMV$
|
||||
^Big$
|
||||
^clean$
|
||||
^cleaned$
|
||||
^Comedy$
|
||||
^Complete$
|
||||
^Completed$
|
||||
|
|
Loading…
Reference in New Issue