Skip to content

Commit

Permalink
Warn when passing deprecated option --plugin
Browse files Browse the repository at this point in the history
This is a first step towards removing this option.
  • Loading branch information
DimitriPapadopoulos committed Nov 5, 2023
1 parent bdb3c81 commit 0739bc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0739bc5

Please sign in to comment.