bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] How to disable reading or settings in .wgetrc?


From: Avinash Sonawane
Subject: Re: [Bug-wget] How to disable reading or settings in .wgetrc?
Date: Thu, 1 Jun 2017 09:25:03 +0530

On Thu, Jun 1, 2017 at 2:47 AM, L A Walsh <address@hidden> wrote:

> But that is only referring to 1 switch.  How do you clear other
> .wgetrc settings (or have it ignored?).

$ man wget

"Affirmative options can be negated by prepending the --no- to the
option name; negative options can be negated by omitting the --no-
prefix.
...
For instance, using "follow_ftp = on" in .wgetrc makes Wget follow FTP
links by default, and using --no-follow-ftp is the only way to restore
the factory default from the command line."

The words *For instance* are very important here. They mean "For example" ;)

> How do I turn off convert-links from the
> command line (so it will override the .wgetrc value)?

So from manpage it follows that you need --no-convert-links on the command line.

BTW if you want to ignore .wgetrc altogether (which seems to be
indicated by the subject line) then you have:

$ man wget

"--config=FILE
           Specify the location of a startup file you wish to use."

So in that case you need to use --config (without any value) on the
command line.

Hope that helps!

-- 
Avinash Sonawane (rootKea)
PICT, Pune
https://rootkea.wordpress.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]