AlexStocks commented on code in PR #895:
URL:
https://github.com/apache/incubator-seata-go/pull/895#discussion_r2375554492
##########
cmd/start.go:
##########
@@ -30,13 +31,23 @@ var (
)
func main() {
- // Print version information
- if len(os.Args) > 1 && (os.Args[1] == "-v" || os.Args[1] == "--version"
|| os.Args[1] == "version") {
- versionToPrint := Version
- if versionToPrint == "" {
- versionToPrint = "unknown"
+ var showVersion = flag.Bool("version", false, "show version
information")
Review Comment:
挪出去,在 main 上面放一个 var ()
--
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]