func init()

in cmd/tracing/daemon.go [95:111]


func init() {
	f, c := initCli("")
	f.ParseFlags()
	cfg.LogFile = logFile // storing log file passed through command line
	// if config file is passed using command line argument parse flags again with default equal to config file
	if configFilePath != "" {
		cfg.ConfigValidation(configFilePath)
		f, c = initCli(configFilePath)
		f.ParseFlags()
	}
	if version {
		fmt.Printf("AWS X-Ray daemon version: %v\n", cfg.Version)
		os.Exit(0)
	}
	config = c
	config.ProxyAddress = proxyAddress
}