From 1ad214ba4a7bc49203dd02de05434ee0ae9bc9b8 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 6 Feb 2026 00:52:12 +0000 Subject: [PATCH] add validation to --kind flag --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c574fef..efde130 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ type context struct { type Config struct { Host string `default:"mixer.local" help:"The host of the X-Air device." env:"XAIR_CLI_HOST" short:"H"` Port int `default:"10024" help:"The port of the X-Air device." env:"XAIR_CLI_PORT" short:"P"` - Kind string `default:"xair" help:"The kind of the X-Air device." env:"XAIR_CLI_KIND" short:"K"` + Kind string `default:"xair" help:"The kind of the X-Air device." env:"XAIR_CLI_KIND" short:"K" enum:"xair,x32"` } // CLI is the main struct for the command-line interface.