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

broadlink_cli: Error/Status messages should go to stderr #744

Open
bengtmartensson opened this issue Jan 19, 2023 · 1 comment
Open

broadlink_cli: Error/Status messages should go to stderr #744

bengtmartensson opened this issue Jan 19, 2023 · 1 comment

Comments

@bengtmartensson
Copy link
Contributor

It is common programming to write produced data to stdout while error and status messags go to stderr. That way, stdout can be used directly: for example redirecting to a file, or piped to another program. For example, to "learn" an IR signal and decode it on the fly,

./broadlink_cli --device @device --learn --durations | irptransmogrifier decode --input -

Presently, there are several commands like print("Learning...") that soil the output.

Suggestion: change to writing on stderr. (That would also make the --learnfile option (more or less) superflous).

@felipediel
Copy link
Collaborator

I think it's a good idea.

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

2 participants