```go
package main
import (
"flag"
"fmt"
)
func main() {
version := flag.Bool("version", false, "Print the version and exit")
//Needto add `debug` and `port` flags below, and how?
flag.Parse()
if *version {
fmt.Printf("FCON 1.0")
return
}
//needto Initialize Server, assign to `s` Below, and how?
s.run()
}
```
debug 和 version 没啥区别啊?
`debug := flag.Bool("debug", false, "是否启用 debug?")`
#3
更多评论