bugGNU Wget - Bugs: bug #44966, wget -nv is too verbose, -q too...

 
 

bug #44966: wget -nv is too verbose, -q too quiet

Submitted by:  jidanni
Submitted on:  Thu 30 Apr 2015 04:06:07 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: trunkOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 30 Apr 2015 10:45:31 AM UTC, comment #3:

1. For heavens sakes give wget a way to print nothing except error
messages, like most other commands can do.

2. You need a new switch to do this as to not break old scripts.

jidanni
Thu 30 Apr 2015 06:59:16 AM UTC, comment #2:

Not really. Sometimes I expect Wget to fail and do not want it's output messing my script up. In other cases, I know how to handle Wget's failures using exit codes and do not want the output to make things ugly.

I usually run wget with -q --show-progress and would hate for errors to clutter up the otherwise perfect screen.

Also, the -q switch should really be "quiet". We do not want to print anything at all if it can be avoided to the screen.

The -nv switch is think is already that sweet spot between verbose and quiet. It will print only error messages and a success message for each file it downloads.

In my opinion, we should not change / add any more verbosity options.

Darshit Shah <darnir>
Project Administrator
Thu 30 Apr 2015 06:51:03 AM UTC, comment #1:

For me, it makes perfect sense to make -q to be quiet unless an error happens, rather than adding an extra command line switch. When things screw up (and specially if you're running wget in a script) you want wget to fail noisily, instead of shutting up. What do you think?

In the meanwhile, if your only purpose is to tell whether Wget has succeeded, you can probe the return value (remember to shift 8 bits left on POSIX).

Ander Juaristi <ajuaristi>
Thu 30 Apr 2015 04:06:07 AM UTC, original submission:

Could you please add an output mode where only errors are printed?

See http://marc.info/?l=wget&m=107407115608086
GNU Wget 1.16.3

jidanni

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by darnir (Posted a comment)
  • -unavailable- added by ajuaristi (Posted a comment)
  • -unavailable- added by jidanni (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1