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

Option to print command only if it has stderr #30

Open
Jenselme opened this issue May 20, 2015 · 2 comments
Open

Option to print command only if it has stderr #30

Jenselme opened this issue May 20, 2015 · 2 comments

Comments

@Jenselme
Copy link

Hi,

Can you add an option to print the command only if it has an stderr (with the stderr of course)? I am compelled to run a command that takes a long file list as argument and I would like to avoid to see this multiple line command. Verbosity:0 doesn't do the trick since I would like to see the error output if it has one.

@kcaran
Copy link

kcaran commented Nov 21, 2016

I would love this as well. I could see it implemented in two ways:

  1. Alter 'silent' to only print stderr and not the command

  2. Use verbosity : 0 to only print stderr and not the command, and -1 for completely silent.

I think option 1 makes the most sense. Without fully reading the docs, I used silent : true first and was surprised when the command displayed.

@m19c
Copy link
Owner

m19c commented Nov 22, 2016

Hmmm... maybe a bunch of constants makes the verbosity more comfortable.

e.g.

VERBOSITY_ALL = 3
VERBOSITY_BUFFERED = 2
VERBOSITY_ERRORS_ONLY = 1

thoughts?

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

No branches or pull requests

4 participants