Skip to content

Commit

Permalink
main: remove -v / -s
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Nov 3, 2024
1 parent 05b003e commit 620bb5b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ static void print_usage(const char *argv0)
" bidirectional traffic\n"
" --loglevel <level> 0-8 are Silence, Fatal, Error, Warning, Notice, Info,\n"
" Debug, Verbose, VeryVerbose respectively (default: 4)\n"
" -v, --verbose increase logging verbosity, can be specified more than once\n"
" e.g. \"-v -v\" prints debug messages\n"
" -s, --silence decrease logging verbosity\n"
" -d, --daemonize run in background and write logs to syslog\n"
" -u, --user [user][:[group]]\n"
" run as the specified identity, e.g. `nobody:nogroup'\n"
Expand Down Expand Up @@ -293,16 +290,6 @@ static void parse_args(const int argc, char *const *const restrict argv)
conf->log_level = (int)value;
continue;
}
if (strcmp(argv[i], "-v") == 0 ||
strcmp(argv[i], "--verbose") == 0) {
conf->log_level++;
continue;
}
if (strcmp(argv[i], "-s") == 0 ||
strcmp(argv[i], "--silence") == 0) {
conf->log_level--;
continue;
}
if (strcmp(argv[i], "-d") == 0 ||
strcmp(argv[i], "--daemonize") == 0) {
conf->daemonize = true;
Expand Down

0 comments on commit 620bb5b

Please sign in to comment.