From: Steven Black Date: Tue, 23 Feb 2016 02:34:04 +0000 (-0500) Subject: Document the --replace command line flag. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=5c98a08d411d13ed0b7da6ecc035c4358e6ba045;p=stevenblack-hosts.git Document the --replace command line flag. --- diff --git a/readme.md b/readme.md index f9b978c2a..b9fdaa8e0 100644 --- a/readme.md +++ b/readme.md @@ -5,7 +5,7 @@ with duplicates removed. You can [download the resultant 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**. ## Take note! @@ -67,11 +67,11 @@ versions (from locations defined by the update.info text file in each source's f 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: - 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: @@ -79,7 +79,10 @@ Command line options: * Host data sources, including extensions, are updated. * 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`. diff --git a/readme_template.md b/readme_template.md index 71d3bbb74..c7effc574 100644 --- a/readme_template.md +++ b/readme_template.md @@ -67,11 +67,11 @@ versions (from locations defined by the update.info text file in each source's f 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: - 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: @@ -79,7 +79,10 @@ Command line options: * Host data sources, including extensions, are updated. * 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`.