This commit is contained in:
mzz2017
2023-02-04 22:52:23 +08:00
parent 43e49f0529
commit 2560587022
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,6 @@ package cmd
import (
"fmt"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"os"
)
@ -18,7 +17,8 @@ var (
Short: "Validate dae config",
Run: func(cmd *cobra.Command, args []string) {
if cfgFile == "" {
logrus.Fatalln("Argument \"--config\" or \"-c\" is required but not provided.")
fmt.Println("Argument \"--config\" or \"-c\" is required but not provided.")
os.Exit(1)
}
// Read config from --config cfgFile.
_, err := readConfig(cfgFile)