AdGuardHome
AdGuardHome copied to clipboard
Refactor flag options
Currently, the logic of parsing CLI options is incomplete, to put it mildly. For example, the effect of each flag is applying from left to right, so if such effect forces the application to exit, the other flags are ignored. This needs refactoring.
This issue will solve itself in the new API, so postponing.
It seems, some flag options (e.g. -h, -p, etc.) are written directly to the configuration file when specified. Might be considered a bug. @ameshkov, what do you think?