minor fixes
This commit is contained in:
@@ -83,7 +83,7 @@ func printUsage() {
|
|||||||
fmt.Fprintln(os.Stderr, "Try 'mxl-gen -h' for more information.")
|
fmt.Fprintln(os.Stderr, "Try 'mxl-gen -h' for more information.")
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkArgs(args appArgs) {
|
func checkArgs(args *appArgs) {
|
||||||
printUsageAndExit := func() {
|
printUsageAndExit := func() {
|
||||||
printUsage()
|
printUsage()
|
||||||
os.Exit(2)
|
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.videoFlowDefFile, "video", "v", "", "Video flow definition JSON file path")
|
||||||
fs.StringVarP(&args.audioFlowDefFile, "audio", "a", "", "Audio flow definition JSON file path [TODO]")
|
fs.StringVarP(&args.audioFlowDefFile, "audio", "a", "", "Audio flow definition JSON file path [TODO]")
|
||||||
// Video pattern flags
|
// 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.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")
|
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)
|
listPatterns(os.Stderr)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
checkArgs(args)
|
checkArgs(&args)
|
||||||
|
|
||||||
type videoInfo struct {
|
type videoInfo struct {
|
||||||
uuid string
|
uuid string
|
||||||
|
|||||||
Reference in New Issue
Block a user