From 0739bc58619309a9eaccf80470bc0d335e12f9d0 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 5 Nov 2023 20:12:50 +0100 Subject: [PATCH] Warn when passing deprecated option `--plugin` This is a first step towards removing this option. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index fb5c40db..a330a3b2 100644 --- a/src/main.c +++ b/src/main.c @@ -396,6 +396,8 @@ int main(int argc, char **argv) if (cli_cfg.pppd_plugin == NULL && strcmp(long_options[option_index].name, "plugin") == 0) { + log_warn("Option --%s is deprecated, use --pppd-plugin\n", + long_options[option_index].name); free(cli_cfg.pppd_plugin); cli_cfg.pppd_plugin = strdup(optarg); break;