Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

skip upgrade check for browser, version, and help commands

Dane Schneider85a59a01735a
diff --git a/app/cli/main.go b/app/cli/main.go
index c93f5f30..693e26b2 100644
--- a/app/cli/main.go
+++ b/app/cli/main.go
@@ -62,8 +62,6 @@ func init() {
}
func main() {
- checkForUpgrade()
-
// Manually check for help flags at the root level
if len(os.Args) == 2 && (os.Args[1] == "-h" || os.Args[1] == "--help") {
// Display your custom help here
@@ -71,5 +69,14 @@ func main() {
os.Exit(0)
}
+ var firstArg string
+ if len(os.Args) > 1 {
+ firstArg = os.Args[1]
+ }
+
+ if firstArg != "version" && firstArg != "browser" && firstArg != "help" && firstArg != "h" {
+ checkForUpgrade()
+ }
+
cmd.Execute()
}