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 d5460f7 commit 8263e5a
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 @@ -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;
Expand Down

0 comments on commit 8263e5a

Please sign in to comment.