8 Star 1 Fork 8

src-openEuler/mosquitto

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
add-usage-output.patch 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
王歌 提交于 2023-05-10 15:47 . update to version 2.0.15
From 5e1dbdb12f32d2c89373f91c764b396b4316690b Mon Sep 17 00:00:00 2001
From: lingsheng <lingsheng@huawei.com>
Date: Thu, 30 Sep 2021 11:33:52 +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 9d31ad9..ed989d5 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -360,12 +360,12 @@ static void print_usage(void)
printf("mosquitto version %s\n\n", VERSION);
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]\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(" -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("\nSee https://mosquitto.org/ for more information.\n\n");
}
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/mosquitto.git
git@gitee.com:src-openeuler/mosquitto.git
src-openeuler
mosquitto
mosquitto
master

搜索帮助