We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 197ed3b commit 9fad448Copy full SHA for 9fad448
1 file changed
internal/cmd/cmd.go
@@ -83,7 +83,7 @@ func ParseEnv() Env {
83
}
84
85
func getConfigPath(stderr io.Writer, f *pflag.Flag) (string, string) {
86
- if f != nil {
+ if f != nil && f.Changed {
87
file := f.Value.String()
88
if file == "" {
89
fmt.Fprintln(stderr, "error parsing config: file argument is empty")
0 commit comments