We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 593bbe2 commit 3f92933Copy full SHA for 3f92933
makeHosts.py
@@ -83,10 +83,22 @@ def main():
83
"file from hosts stored in "
84
"data subfolders."
85
)
86
+ parser.add_argument(
87
+ "--noupdate",
88
+ "-n",
89
+ dest="noupdate",
90
+ default=False,
91
+ action="store_true",
92
+ help="Don't update from host data sources.",
93
+ )
94
parser.parse_args()
95
+ options = vars(parser.parse_args())
96
97
# Update the unified hosts file
- update_hosts_file("-a")
98
+ if options["noupdate"]:
99
+ update_hosts_file("-a", "-n")
100
+ else:
101
+ update_hosts_file("-a")
102
103
# List of extensions we want to generate, we will loop over them recursively to prevent manual definitions
104
# Only add new extensions to the end of the array, to avoid relocating existing hosts-files
0 commit comments