From d1f3d3a238a1b3d954c3c1e144d309fbae420ee5 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 4ebefc98..b146d880 100644 --- a/src/main.c +++ b/src/main.c @@ -394,6 +394,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;