add --man flag for generating manfile

This commit is contained in:
2025-04-29 15:19:16 +01:00
parent cb973c09f5
commit 0a2c622645
4 changed files with 17 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import (
"time"
"github.com/alecthomas/kong"
mangokong "github.com/alecthomas/mango-kong"
"github.com/andreykaipov/goobs"
)
@@ -26,6 +27,8 @@ type ObsConfig struct {
type cli struct {
ObsConfig `embed:"" help:"OBS WebSocket configuration."`
Man mangokong.ManFlag `help:"Print man page."`
Version VersionCmd `help:"Show version." cmd:"" aliases:"v"`
Scene SceneCmd `help:"Manage scenes." cmd:"" aliases:"sc"`
Sceneitem SceneItemCmd `help:"Manage scene items." cmd:"" aliases:"si"`