main: default config to /etc/clair/config.yml
This commit is contained in:
parent
30055af03e
commit
7ca9127bbe
@ -50,7 +50,7 @@ var log = capnslog.NewPackageLogger("github.com/coreos/clair/cmd/clair", "main")
|
|||||||
func main() {
|
func main() {
|
||||||
// Parse command-line arguments
|
// Parse command-line arguments
|
||||||
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError)
|
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError)
|
||||||
flagConfigPath := flag.String("config", "", "Load configuration from the specified file.")
|
flagConfigPath := flag.String("config", "/etc/clair/config.yaml", "Load configuration from the specified file.")
|
||||||
flagCPUProfilePath := flag.String("cpu-profile", "", "Write a CPU profile to the specified file before exiting.")
|
flagCPUProfilePath := flag.String("cpu-profile", "", "Write a CPU profile to the specified file before exiting.")
|
||||||
flagLogLevel := flag.String("log-level", "info", "Define the logging level.")
|
flagLogLevel := flag.String("log-level", "info", "Define the logging level.")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
Loading…
Reference in New Issue
Block a user