New -list-protocols
option
This will make it possible for the Debian package to fetch the list of supported protocols and prompt the user to choose one upon installation.
This commit is contained in:
parent
f5932d8be3
commit
0ea681645b
1 changed files with 5 additions and 0 deletions
|
@ -884,6 +884,10 @@ my %opt = ();
|
||||||
my $deprecated_handler = sub { warning("'-$_[0]' is deprecated and does nothing"); };
|
my $deprecated_handler = sub { warning("'-$_[0]' is deprecated and does nothing"); };
|
||||||
$opt{'fw-banlocal'} = $deprecated_handler;
|
$opt{'fw-banlocal'} = $deprecated_handler;
|
||||||
$opt{'if-skip'} = $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 {
|
$opt{'list-web-services'} = sub {
|
||||||
printf("%s %s\n", $_, $builtinweb{$_}{url}) for sort(keys(%builtinweb));
|
printf("%s %s\n", $_, $builtinweb{$_}{url}) for sort(keys(%builtinweb));
|
||||||
exit(0);
|
exit(0);
|
||||||
|
@ -897,6 +901,7 @@ my @opt = (
|
||||||
["proxy", "=s", "-proxy <host> : use <host> as the HTTP proxy"],
|
["proxy", "=s", "-proxy <host> : use <host> as the HTTP proxy"],
|
||||||
["server", "=s", "-server <host> : update DNS information on <host>"],
|
["server", "=s", "-server <host> : update DNS information on <host>"],
|
||||||
["protocol", "=s", "-protocol <type> : update protocol used"],
|
["protocol", "=s", "-protocol <type> : 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 <path> : load configuration information from <path>"],
|
["file", "=s", "-file <path> : load configuration information from <path>"],
|
||||||
["cache", "=s", "-cache <path> : record address used in <path>"],
|
["cache", "=s", "-cache <path> : record address used in <path>"],
|
||||||
["pid", "=s", "-pid <path> : record process id in <path> if daemonized"],
|
["pid", "=s", "-pid <path> : record process id in <path> if daemonized"],
|
||||||
|
|
Loading…
Reference in a new issue