Allows choosing and managing each tool
This commit is contained in:
@@ -6,12 +6,15 @@ import picocli.CommandLine;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Main class for CLI
|
||||
*/
|
||||
@CommandLine.Command(name = "autosubtitle", mixinStandardHelpOptions = true, version = "autosubtitle 1.0-SNAPSHOT", description = "CLI for auto-subtitle")
|
||||
public final class Cli implements Runnable {
|
||||
|
||||
@CommandLine.Option(names = {"-b", "--burn"}, description = "Burn the subtitles. Otherwise, adds them to the video", defaultValue = "false")
|
||||
@CommandLine.Option(names = {"-b", "--burn"}, description = "Burns the subtitles. Otherwise, adds them to the video", defaultValue = "false")
|
||||
private boolean burn;
|
||||
@CommandLine.Option(names = {"-e", "--extractor"}, description = "The subtitle extractor to use [whisper]", defaultValue = "whisper")
|
||||
@CommandLine.Option(names = {"-e", "--extractor"}, description = "The subtitle extractor to use [whisperx]", defaultValue = "whisperx")
|
||||
private String extractor;
|
||||
@CommandLine.Option(names = {"-i", "--input"}, description = "The input file", required = true)
|
||||
private String input;
|
||||
|
||||
Reference in New Issue
Block a user