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

[REQUEST] [LSAR/UNAR] Print error messages to error stream #118

Open
kyeastmood opened this issue Jan 20, 2020 · 0 comments
Open

[REQUEST] [LSAR/UNAR] Print error messages to error stream #118

kyeastmood opened this issue Jan 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@kyeastmood
Copy link

When error messages are printed to error stream they are easier to parse by other tools. However currently they are sent to output stream.

It would be great to either do it automatically or allow the user configure the streams in the command. For instance in 7-Zip there is a -bs switch.
Syntax:

-bs{o|e|p}{0|1|2}

Where 7-Zip message types are:

o - standard output messages
e - error messages
p - progress information

And messages' destination streams are:

0 - disable stream
1 - redirect to stdout stream
2 - redirect to stderr stream

Examples:

# Tests archive.7z and sends error messages to stdout that is redirected to log.txt:
7z t archive.7z -bse1 > log.txt

# Tests archive.7z and sends progress information to stderr stream:
7z t archive.7z -bsp2 > log.txt

Thanks

@kyeastmood kyeastmood changed the title [REQUEST] Print error messages to error stream [REQUEST] [LSAR/UNAR] Print error messages to error stream Jan 20, 2020
@PaulTaykalo PaulTaykalo added the enhancement New feature or request label Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants