From 1842f7d888eb21bf38c04873c84939630bbdc4c3 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Tue, 18 Apr 2023 14:18:28 +0300 Subject: [PATCH] Pull request 1831: home: imp depr option doc Merge in DNS/adguard-home from imp-option-doc to master Squashed commit of the following: commit 267410fcc2c9e757c7d8fb7d9059a709932dda9d Author: Ainar Garipov Date: Mon Apr 17 14:30:12 2023 +0300 home: imp depr option doc --- internal/home/options.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/home/options.go b/internal/home/options.go index 9d435b6e..1cfac3d9 100644 --- a/internal/home/options.go +++ b/internal/home/options.go @@ -249,13 +249,15 @@ var cmdLineOpts = []cmdLineOpt{{ updateNoValue: func(o options) (options, error) { o.noEtcHosts = true; return o, nil }, effect: func(_ options, _ string) (f effect, err error) { log.Info( - "warning: --no-etc-hosts flag is deprecated and will be removed in the future versions", + "warning: --no-etc-hosts flag is deprecated " + + "and will be removed in the future versions; " + + "set clients.runtime_sources.hosts in the configuration file to false instead", ) return nil, nil }, serialize: func(o options) (val string, ok bool) { return "", o.noEtcHosts }, - description: "Deprecated. Do not use the OS-provided hosts.", + description: "Deprecated: use clients.runtime_sources.hosts instead. Do not use the OS-provided hosts.", longName: "no-etc-hosts", shortName: "", }, {