Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some errors automatically outputting content to stderr, while some others aren't #306

Open
Arteneko opened this issue May 13, 2019 · 2 comments

Comments

@Arteneko
Copy link

I encountered a problem: Some errors, like Usage, are directly outputting data on the standard output when some others, like "Please specify the [...] command" aren't.

Could the list of auto-outputting errors be documented, or could a standard behaviour be decided?

@atc0005
Copy link

atc0005 commented Sep 23, 2019

Potentially related:

Configure the options struct to have a short name longer than 1 character (e.g., rm as short for remove). This failed silently for me (I'm new to Go, so this threw me for a loop).

@oubiwann
Copy link

oubiwann commented Feb 2, 2022

I've addressed this in an error-wrapping lib for go-flags, here:

At least until go-flags gets more maintenance and gets an error-handling update ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants