Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
skip upgrade check for browser, version, and help commands
Dane Schneider85a59a01735a
diff --git a/app/cli/main.go b/app/cli/main.goindex 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 levelif 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()}