AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Refactor flag options

Open EugeneOne1 opened this issue 4 years ago • 2 comments

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.

EugeneOne1 avatar Mar 29 '21 17:03 EugeneOne1

This issue will solve itself in the new API, so postponing.

ainar-g avatar Jun 03 '21 15:06 ainar-g

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?

EugeneOne1 avatar Oct 14 '22 10:10 EugeneOne1