mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-05 03:56:00 +02:00
Document the --replace command line flag.
This commit is contained in:
parent
ce3354ee73
commit
5c98a08d41
11
readme.md
11
readme.md
@ -5,7 +5,7 @@ with duplicates removed. You can [download the resultant amalgamated hosts file
|
|||||||
|
|
||||||
**Details about this amalgamated hosts file:**
|
**Details about this amalgamated hosts file:**
|
||||||
|
|
||||||
* Last updated: **February 23 2016 at 01:05:02 GMT**.
|
* Last updated: **February 23 2016 at 02:33:37 GMT**.
|
||||||
* Contains: **27,148 unique entries**.
|
* Contains: **27,148 unique entries**.
|
||||||
|
|
||||||
## Take note!
|
## Take note!
|
||||||
@ -67,11 +67,11 @@ versions (from locations defined by the update.info text file in each source's f
|
|||||||
|
|
||||||
Using Python 3:
|
Using Python 3:
|
||||||
|
|
||||||
python3 updateHostsFile.py [--auto] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||||
|
|
||||||
Using Python 2.7:
|
Using Python 2.7:
|
||||||
|
|
||||||
python updateHostsFile.py [--auto] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||||
|
|
||||||
Command line options:
|
Command line options:
|
||||||
|
|
||||||
@ -79,7 +79,10 @@ Command line options:
|
|||||||
|
|
||||||
* Host data sources, including extensions, are updated.
|
* Host data sources, including extensions, are updated.
|
||||||
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
|
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
|
||||||
* Your active hosts file is *not* replaced.
|
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
|
||||||
|
|
||||||
|
`--replace`, `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
|
||||||
|
force replacement.
|
||||||
|
|
||||||
`--ip nnn.nnn.nnn.nnn`, `--i nnn.nnn.nnn.nnn`: the IP address to use as the target. Default is `0.0.0.0`.
|
`--ip nnn.nnn.nnn.nnn`, `--i nnn.nnn.nnn.nnn`: the IP address to use as the target. Default is `0.0.0.0`.
|
||||||
|
|
||||||
|
@ -67,11 +67,11 @@ versions (from locations defined by the update.info text file in each source's f
|
|||||||
|
|
||||||
Using Python 3:
|
Using Python 3:
|
||||||
|
|
||||||
python3 updateHostsFile.py [--auto] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||||
|
|
||||||
Using Python 2.7:
|
Using Python 2.7:
|
||||||
|
|
||||||
python updateHostsFile.py [--auto] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||||
|
|
||||||
Command line options:
|
Command line options:
|
||||||
|
|
||||||
@ -79,7 +79,10 @@ Command line options:
|
|||||||
|
|
||||||
* Host data sources, including extensions, are updated.
|
* Host data sources, including extensions, are updated.
|
||||||
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
|
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
|
||||||
* Your active hosts file is *not* replaced.
|
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
|
||||||
|
|
||||||
|
`--replace`, `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
|
||||||
|
force replacement.
|
||||||
|
|
||||||
`--ip nnn.nnn.nnn.nnn`, `--i nnn.nnn.nnn.nnn`: the IP address to use as the target. Default is `0.0.0.0`.
|
`--ip nnn.nnn.nnn.nnn`, `--i nnn.nnn.nnn.nnn`: the IP address to use as the target. Default is `0.0.0.0`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user