diff --git a/ddclient.in b/ddclient.in index 38702b1..cc9e333 100755 --- a/ddclient.in +++ b/ddclient.in @@ -884,6 +884,10 @@ my %opt = (); my $deprecated_handler = sub { warning("'-$_[0]' is deprecated and does nothing"); }; $opt{'fw-banlocal'} = $deprecated_handler; $opt{'if-skip'} = $deprecated_handler; +$opt{'list-protocols'} = sub { + printf("%s\n", $_) for sort(keys(%services)); + exit(0); +}; $opt{'list-web-services'} = sub { printf("%s %s\n", $_, $builtinweb{$_}{url}) for sort(keys(%builtinweb)); exit(0); @@ -897,6 +901,7 @@ my @opt = ( ["proxy", "=s", "-proxy : use as the HTTP proxy"], ["server", "=s", "-server : update DNS information on "], ["protocol", "=s", "-protocol : update protocol used"], + ["list-protocols", "", "-list-protocols : print a machine-readable list of supported update protocols and exit. Format: one per line"], ["file", "=s", "-file : load configuration information from "], ["cache", "=s", "-cache : record address used in "], ["pid", "=s", "-pid : record process id in if daemonized"],