Commit b2b52c32af
Unsigned
Layout: unified · split
cmd/curd/main.go +8
| @@ -50,6 +50,14 @@ func main() { | ||
| 50 | 50 | flag.BoolVar(&userCurdConfig.DiscordPresence, "discord-presence", userCurdConfig.DiscordPresence, "Enable Discord presence") |
| 51 | 51 | subFlag := flag.Bool("sub", false, "Watch sub version") |
| 52 | 52 | dubFlag := flag.Bool("dub", false, "Watch dub version") |
| 53 | ||
| 54 | // Custom help/usage function | |
| 55 | flag.Usage = func() { | |
| 56 | fmt.Fprintf(os.Stderr, "Curd is a CLI tool to manage anime playback with advanced features like skipping intro, outro, filler, recap, tracking progress, and integrating with Discord.\n") | |
| 57 | fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]) | |
| 58 | flag.PrintDefaults() // This prints the default flag information | |
| 59 | } | |
| 60 | ||
| 53 | 61 | flag.Parse() |
| 54 | 62 | |
| 55 | 63 | // Set SubOrDub based on the flags |