From d5fb83a140e90424aede0d99a005eac57806b9d2 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 24 May 2021 14:40:06 +0800 Subject: [PATCH] change -n to -N for option --no-daemon --- src/sf_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sf_util.c b/src/sf_util.c index fc3b1b4..e8ff82d 100644 --- a/src/sf_util.c +++ b/src/sf_util.c @@ -106,7 +106,7 @@ void sf_usage_ex1(const char *program, const str_ptr_array_t *other_options) } } - fprintf(stderr, "\t-n | --without-daemon | --no-daemon: " + fprintf(stderr, "\t-N | --without-daemon | --no-daemon: " "run in foreground\n" "\t-V | --version: show version info\n" "\t-h | --help: for this usage\n\n"); @@ -137,7 +137,7 @@ const char *sf_parse_daemon_mode_and_action_ex1(int argc, char *argv[], continue; } - if (strcmp(argv[i], "-n") == 0 || + if (strcmp(argv[i], "-N") == 0 || strcmp(argv[i], "--without-daemon") == 0 || strcmp(argv[i], "--no-daemon") == 0) {