From 66da965edd56aebc0c96be437d15beed1125679f Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 6 Feb 2026 00:47:34 +0000 Subject: [PATCH] fix default value for kind --- README.md | 6 +++--- main.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1a480d1..e909129 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ A CLI to control Behringer X-Air mixers. Flags: -h, --help Show context-sensitive help. - --host="mixer.local" The host of the X-Air device ($XAIR_CLI_HOST). - --port=10024 The port of the X-Air device ($XAIR_CLI_PORT). - --kind="xr18" The kind of the X-Air device ($XAIR_CLI_KIND). + -H, --host="mixer.local" The host of the X-Air device ($XAIR_CLI_HOST). + -P, --port=10024 The port of the X-Air device ($XAIR_CLI_PORT). + -K, --kind="xair" The kind of the X-Air device ($XAIR_CLI_KIND). -v, --version Print gobs-cli version information and quit Commands: diff --git a/main.go b/main.go index ee60ae8..c574fef 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:"xr18" 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"` } // CLI is the main struct for the command-line interface. @@ -42,7 +42,7 @@ type Config struct { type CLI struct { Config `embed:"" prefix:"" help:"The configuration for the CLI."` - Version VersionFlag `help:"Print gobs-cli version information and quit" name:"version" short:"v"` + Version VersionFlag `help:"Print xair-cli version information and quit" name:"version" short:"v"` Completion kongcompletion.Completion `help:"Generate shell completion scripts." cmd:"" aliases:"c"`