cmd: add -ska-band-addr as alias for -skaband-addr flag
Add -ska-band-addr as a command-line flag alias for the existing -skaband-addr
flag to provide a more convenient option with consistent hyphenation.
Both flags set the same underlying variable and work identically, with the
new alias including descriptive help text indicating it's an alias for the
original flag. When both flags are provided, the last one takes precedence
following standard command-line flag behavior.
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: sb035682896d54335k
diff --git a/cmd/sketch/main.go b/cmd/sketch/main.go
index a2c9f52..f0b66b7 100644
--- a/cmd/sketch/main.go
+++ b/cmd/sketch/main.go
@@ -231,6 +231,7 @@
// User-visible flags
userFlags.StringVar(&flags.addr, "addr", "localhost:0", "local HTTP server")
userFlags.StringVar(&flags.skabandAddr, "skaband-addr", "https://sketch.dev", "URL of the skaband server; set to empty to disable sketch.dev integration")
+ userFlags.StringVar(&flags.skabandAddr, "ska-band-addr", "https://sketch.dev", "URL of the skaband server; set to empty to disable sketch.dev integration (alias for -skaband-addr)")
userFlags.BoolVar(&flags.unsafe, "unsafe", false, "run without a docker container")
userFlags.BoolVar(&flags.openBrowser, "open", true, "open sketch URL in system browser; on by default except if -one-shot is used or a ssh connection is detected")
userFlags.Float64Var(&flags.maxDollars, "max-dollars", 10.0, "maximum dollars the agent should spend per turn, 0 to disable limit")