Skip to content

Commit fe611a8

Browse files
authored
Update deprecated func in README example (#102)
WithEnvVarNoPrefix() (Deprecated) -> WithEnvVars()
1 parent 7a9748f commit fe611a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func main() {
104104
port = fs.Int("port", 8080, "listen port for server (also via PORT)")
105105
debug = fs.Bool("debug", false, "log debug information (also via DEBUG)")
106106
)
107-
if err := ff.Parse(fs, os.Args[1:], ff.WithEnvVarNoPrefix()); err != nil {
107+
if err := ff.Parse(fs, os.Args[1:], ff.WithEnvVars()); err != nil {
108108
fmt.Fprintf(os.Stderr, "error: %v\n", err)
109109
os.Exit(1)
110110
}

0 commit comments

Comments
 (0)