nfflow/internal/cmd/init.go

12 lines
214 B
Go
Raw Normal View History

2024-03-31 20:09:20 +08:00
package cmd
import (
"flag"
"github.com/loveuer/nfflow/internal/opt"
)
func init() {
flag.StringVar(&opt.ConfigFile, "c", "etc/config.json", "config json file path")
flag.IntVar(&opt.Debug, "debug", 0, "")
}