Closed pengc99 closed 4 years ago
Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!
Hi Andrew @pengc99
In your example, --keepdomaincomments
, --skipstatichosts
--minimise
are flags. Flags are either set, or not. You don't pass arguments or options to flags.
I agree, this distinction could be clearer in the help text.
Here's the code where flags and options are parsed.
I understand, thanks for clarifying. I'll submit a pull request to help clear up the wording on the flags.
Operating system: Debian 10.3 Python version: Python 3.7.3
Running the script and passing the command line arguments with values of true / false per the readme file results in an error saying the command line arguments were recognized:
However, running them with the arguments without any values works:
Am I somehow using the script wrong or reading the readme file wrong? I know running it as root is bad juju but this is just a test environment.