From e0279441da5eec4ec9582bf0ff455a5a3e678df1 Mon Sep 17 00:00:00 2001
From: lingsheng <lingsheng@huawei.com>
Date: Thu, 5 Feb 2026 19:48:17 +0800
Subject: [PATCH] add usage output

---
 src/conf.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/conf.c b/src/conf.c
index c742f94..c227524 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -549,14 +549,14 @@ static void print_usage(void)
 	printf("mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker.\n\n");
 	printf("Usage: mosquitto [-c config_file] [-d] [-h] [-p port] [-v]\n");
 	printf("                 [--tls-keylog file]\n\n");
-	printf(" -c : specify the broker config file.\n");
-	printf(" -d : put the broker into the background after starting.\n");
-	printf(" -h : display this help.\n");
-	printf(" -p : start the broker listening on the specified port.\n");
+	printf(" -c, --config-file : specify the broker config file.\n");
+	printf(" -d, --daemon : put the broker into the background after starting.\n");
+	printf(" -h, --help : display this help.\n");
+	printf(" -p, --port : start the broker listening on the specified port.\n");
 	printf("      Not recommended in conjunction with the -c option.\n");
 	printf(" -q : quiet mode - disable all logging types. This overrides\n");
 	printf("      any logging options given in the config file, and -v.\n");
-	printf(" -v : verbose mode - enable all logging types. This overrides\n");
+	printf(" -v, --verbose : verbose mode - enable all logging types. This overrides\n");
 	printf("      any logging options given in the config file.\n");
 	printf(" --test-config : test config file and exit\n");
 	printf(" --tls-keylog : log TLS connection information to a file, to allow\n");
-- 
2.47.3