FS#20258 - [newsbeuter] No quiet option

Attached to Project: Community Packages
Opened by Egan McComb (egan) - Thursday, 22 July 2010, 15:07 GMT
Last edited by Ionut Biru (wonder) - Saturday, 07 August 2010, 06:34 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When newsbeuter is started from a shell, it sends several messages to stdout:
Starting newsbeuter 2.3...
Loading configuration...done.
Opening cache...done.
Loading URLs from /home/egan/.newsbeuter/urls...done.
Loading articles from cache...done.
These cannot be silenced by any option, and cannot be redirected to /dev/null since the ncurses interface is also affected.
Upon quitting, it outputs:
Cleaning up cache...done.

In my opinion, the default behavior of such a console application should be complete silence but for errors.
In any case, there should at least be an option for silence for use in aliases.

Ironically enough, the code that handles the first set of output actually checks a flag for silence, but this flag cannot be set by the user.
Thus a very simple patch can be applied to include a -q option. It is attached.
Unfortunately, the quitting output is not governed by similar code; I myself do not know C++ and didn't want to mess with it too much, but I am sure one of the gurus could easily get this part silenced as well.
This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 07 August 2010, 06:34 GMT
Reason for closing:  Upstream
Additional comments about closing:  reason from request: submitted upstream
Comment by Evangelos Foutras (foutrelis) - Friday, 23 July 2010, 05:07 GMT
Reporting this upstream [1] would be a great way to ensure the correct behavior is introduced in future versions.

----
[1] http://code.google.com/p/newsbeuter/issues/list
Comment by Egan McComb (egan) - Friday, 23 July 2010, 15:00 GMT
I have reported it upstream. We'll see what happens.
Comment by Egan McComb (egan) - Tuesday, 27 July 2010, 18:01 GMT
Looks like the option has been added, it is available in git. Now all I have to do is wait till it trickles down to us.

Loading...