diff --git a/cmd/root.go b/cmd/root.go
index bd8a832d14365379f12c7fd06a9a02941d518059..da8ab94e28d1d9f2fbe00514d3cc470538ee1e3c 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -71,18 +71,18 @@ func init() {
 		"",
 		`Run all the checks under this comma-delimited list of groups. Example --group="1.1"`,
 	)
-
+	RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is ./cfg/config.yaml)")
 }
 
 // initConfig reads in config file and ENV variables if set.
 func initConfig() {
 	if cfgFile != "" { // enable ability to specify config file via flag
 		viper.SetConfigFile(cfgFile)
+	} else {
+		viper.SetConfigName("config") // name of config file (without extension)
+		viper.AddConfigPath(cfgDir)   // adding ./cfg as first search path
 	}
 
-	viper.SetConfigName("config") // name of config file (without extension)
-	viper.AddConfigPath(cfgDir)   // adding home directory as first search path
-
 	viper.SetEnvPrefix("CISK8S")
 	viper.AutomaticEnv() // read in environment variables that match