Audio #1
@@ -83,7 +83,7 @@ func printUsage() {
|
||||
fmt.Fprintln(os.Stderr, "Try 'mxl-gen -h' for more information.")
|
||||
}
|
||||
|
||||
func checkArgs(args appArgs) {
|
||||
func checkArgs(args *appArgs) {
|
||||
printUsageAndExit := func() {
|
||||
printUsage()
|
||||
os.Exit(2)
|
||||
@@ -274,7 +274,7 @@ func flagSetAddFlags(fs *pflag.FlagSet, args *appArgs) {
|
||||
fs.StringVarP(&args.videoFlowDefFile, "video", "v", "", "Video flow definition JSON file path")
|
||||
fs.StringVarP(&args.audioFlowDefFile, "audio", "a", "", "Audio flow definition JSON file path [TODO]")
|
||||
// Video pattern flags
|
||||
fs.StringVarP(&args.pattern, "pattern", "p", "bars", "Video pattern type")
|
||||
fs.StringVarP(&args.pattern, "pattern", "p", "ebu75", "Video pattern type")
|
||||
fs.BoolVar(&args.listPatterns, "list-patterns", false, "List video available video patterns and exit")
|
||||
|
||||
fs.StringVarP(&args.textOverlay, "text", "t", "", "Text overlay above video pattern. Ignored if text-pos set")
|
||||
@@ -328,7 +328,7 @@ func main() {
|
||||
listPatterns(os.Stderr)
|
||||
return
|
||||
}
|
||||
checkArgs(args)
|
||||
checkArgs(&args)
|
||||
|
||||
type videoInfo struct {
|
||||
uuid string
|
||||
|
||||
Reference in New Issue
Block a user