Skip to content
Snippets Groups Projects
Commit c60deda7 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

knotd: remove verbose parameter

parent 746f72a7
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ Knot DNS requires few libraries to be compiled:
@itemize
@item
OpenSSL, at least 0.9.8
OpenSSL, at least 1.0.0 (1.0.1 is required for ECDSA)
@item
zlib
@item
......
......@@ -17,7 +17,6 @@ Parameters:
-c, --config <file> Select configuration file.
-d, --daemonize=[dir] Run server as a daemon. Working directory may
be set.
-v, --verbose Verbose mode - additional runtime information.
-V, --version Print version of the server.
-h, --help Print help and usage.
@end example
......
......@@ -14,9 +14,6 @@ Select configuration file.
\fB\-d\fR, \fB\-\-daemonize\fR=[\fIdir\fR]
Run server as a daemon. Working directory may be set.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Verbose mode \- additional runtime information.
.TP
\fB\-V\fR, \fB\-\-version\fR
Print version of the server.
.TP
......
......@@ -191,7 +191,6 @@ static void help(void)
printf("\nParameters:\n"
" -c, --config <file> Select configuration file.\n"
" -d, --daemonize=[dir] Run server as a daemon.\n"
" -v, --verbose Verbose mode - additional runtime information.\n"
" -V, --version Print version of the server.\n"
" -h, --help Print help and usage.\n");
}
......@@ -200,7 +199,6 @@ int main(int argc, char **argv)
{
/* Parse command line arguments. */
int c = 0, li = 0;
int verbose = 0;
int daemonize = 0;
const char *config_fn = conf_find_default();
const char *daemon_root = "/";
......@@ -209,13 +207,12 @@ int main(int argc, char **argv)
struct option opts[] = {
{"config", required_argument, 0, 'c'},
{"daemonize", optional_argument, 0, 'd'},
{"verbose", no_argument, 0, 'v'},
{"version", no_argument, 0, 'V'},
{"help", no_argument, 0, 'h'},
{0, 0, 0, 0}
};
while ((c = getopt_long(argc, argv, "c:dvVh", opts, &li)) != -1) {
while ((c = getopt_long(argc, argv, "c:dVh", opts, &li)) != -1) {
switch (c)
{
case 'c':
......@@ -227,9 +224,6 @@ int main(int argc, char **argv)
daemon_root = optarg;
}
break;
case 'v':
verbose = 1;
break;
case 'V':
printf("%s, version %s\n", "Knot DNS", PACKAGE_VERSION);
return EXIT_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment