Skip to content

Commit

Permalink
Update deprecated func in README example (peterbourgon#102)
Browse files Browse the repository at this point in the history
WithEnvVarNoPrefix() (Deprecated) -> WithEnvVars()
  • Loading branch information
gilcrest authored Nov 22, 2022
1 parent 7a9748f commit fe611a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func main() {
port = fs.Int("port", 8080, "listen port for server (also via PORT)")
debug = fs.Bool("debug", false, "log debug information (also via DEBUG)")
)
if err := ff.Parse(fs, os.Args[1:], ff.WithEnvVarNoPrefix()); err != nil {
if err := ff.Parse(fs, os.Args[1:], ff.WithEnvVars()); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
Expand Down

0 comments on commit fe611a8

Please sign in to comment.