spf13 / pflag

Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
BSD 3-Clause "New" or "Revised" License
2.43k stars 348 forks source link

Remove Redundant "Unknown-Flag" Error #364

Open vaguecoder opened 2 years ago

vaguecoder commented 2 years ago

Motivation

Issue 352 reported by @wimglenn

Changes

Remove redundant error print function call in failf.

Summary

This deletes the extra error log which gets printed when opted for ExitOnError or PanicOnError.

Related Issues

Closes #352

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

prgres commented 1 year ago

Any updates? It waits for almost a whole year when the problem still occurs