AlexStocks commented on code in PR #895:
URL: 
https://github.com/apache/incubator-seata-go/pull/895#discussion_r2374565700


##########
cmd/start.go:
##########
@@ -17,6 +17,30 @@
 
 package main
 
+import (
+       "fmt"
+       "os"
+)
+
+// Version information set by build flags
+var (
+       Version  string
+       Branch   string
+       Revision string
+)
+
 func main() {
+       // Print version information
+       if len(os.Args) > 1 && (os.Args[1] == "-v" || os.Args[1] == "--version" 
|| os.Args[1] == "version") {

Review Comment:
   Please improve it by @copilot's suggestion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to