From afcebd2ffaa86d354c870f32318f7a089b4a8556 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Tue, 31 Dec 2024 14:01:58 -0300 Subject: [PATCH] u2v video out filename should be mandatory --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index f57bcd4..73c1eed 100644 --- a/main.go +++ b/main.go @@ -189,6 +189,9 @@ func main() { downloadUgoiraCmd(downloadCmd.Args(), flags) case "u2v": u2vCmd.Parse(os.Args[2:]) + if len(flags.outputFileName) == 0 { + die("Expected filename output for video") + } ugoira2videoCmd(u2vCmd.Args(), flags) case "-h": fmt.Printf("Commands: download, u2v\nUse '%s -h' to see the command-specific flags.\n", os.Args[0])