Promote to 1.0.0-rc
This commit is contained in:
		@ -26,7 +26,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	version = "0.0.7"
 | 
			
		||||
	version = "1.0.0-rc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
@ -349,7 +349,7 @@ func run() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	fs := flag.NewFlagSet("mxrouter", flag.ExitOnError)
 | 
			
		||||
	fs := flag.NewFlagSet("mynettcptable", flag.ExitOnError)
 | 
			
		||||
	listen = fs.String("listen-addr", "127.0.0.1:8080", "listen address for server (also via LISTEN env var)")
 | 
			
		||||
	logTo = fs.String("logTo", "syslog", "Where to output logs. Valid values are \"stdout\", \"syslog\"")
 | 
			
		||||
	logLevel = fs.String("logLevel", "warning", "Log level. Valid values are \"fatal\", \"error\", \"warn\", \"info\", \"debug\"")
 | 
			
		||||
@ -365,6 +365,7 @@ func main() {
 | 
			
		||||
	fs.Usage = func() {
 | 
			
		||||
		fmt.Fprintf(flag.CommandLine.Output(), "%s version %s\n", os.Args[0], version)
 | 
			
		||||
		fmt.Fprintf(flag.CommandLine.Output(), "Usage:\n")
 | 
			
		||||
		fmt.Fprintf(flag.CommandLine.Output(), "Each argument can be set in config file.\n")
 | 
			
		||||
		fs.PrintDefaults()
 | 
			
		||||
	}
 | 
			
		||||
	ff.Parse(fs, os.Args[1:], ff.WithEnvVarNoPrefix(), ff.WithConfigFileFlag("config"), ff.WithConfigFileParser(ff.PlainParser))
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user