Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d3b2bcb6
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d3b2bcb6
编写于
8月 10, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
doc: change 3.0 doc
上级
bed9ca4d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
tools/shell/src/shellArguments.c
tools/shell/src/shellArguments.c
+5
-5
未找到文件。
tools/shell/src/shellArguments.c
浏览文件 @
d3b2bcb6
...
...
@@ -38,7 +38,7 @@
#define SHELL_STARTUP "Check the details of the service status."
#define SHELL_WIDTH "Set the default binary display width, default is 30."
#define SHELL_NET_ROLE "Net role when network connectivity test, options: client|server."
#define SHELL_PK
G
_LEN "Packet length used for net test, default is 1024 bytes."
#define SHELL_PK
T
_LEN "Packet length used for net test, default is 1024 bytes."
#define SHELL_PKT_NUM "Packet numbers used for net test, default is 100."
#define SHELL_VERSION "Print program version."
#define SHELL_EMAIL "<support@taosdata.com>"
...
...
@@ -62,7 +62,7 @@ void shellPrintHelp() {
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-f,"
,
indent
,
SHELL_FILE
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-h,"
,
indent
,
SHELL_HOST
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-k,"
,
indent
,
SHELL_CHECK
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-l,"
,
indent
,
SHELL_PK
G
_LEN
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-l,"
,
indent
,
SHELL_PK
T
_LEN
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-n,"
,
indent
,
SHELL_NET_ROLE
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-N,"
,
indent
,
SHELL_PKT_NUM
);
printf
(
"%s%s%s%s
\r\n
"
,
indent
,
"-p,"
,
indent
,
SHELL_PASSWORD
);
...
...
@@ -105,11 +105,11 @@ static struct argp_option shellOptions[] = {
{
"startup"
,
't'
,
0
,
0
,
SHELL_STARTUP
},
{
"display-width"
,
'w'
,
"WIDTH"
,
0
,
SHELL_WIDTH
},
{
"netrole"
,
'n'
,
"NETROLE"
,
0
,
SHELL_NET_ROLE
},
{
"pktlen"
,
'l'
,
"PKTLEN"
,
0
,
SHELL_PK
G
_LEN
},
{
"pktlen"
,
'l'
,
"PKTLEN"
,
0
,
SHELL_PK
T
_LEN
},
#ifdef WEBSOCKET
{
"dsn"
,
'E'
,
"DSN"
,
0
,
SHELL_DSN
},
{
"restful"
,
'R'
,
0
,
0
,
SHELL_REST
},
{
"timeout"
,
'T'
,
"SECONDS"
,
0
,
SHELL_TIMEOUT
},
{
"timeout"
,
'T'
,
"SECONDS"
,
0
,
SHELL_TIMEOUT
},
#endif
{
"pktnum"
,
'N'
,
"PKTNUM"
,
0
,
SHELL_PKT_NUM
},
{
0
},
...
...
@@ -228,7 +228,7 @@ int32_t shellParseArgsWithoutArgp(int argc, char *argv[]) {
SShellArgs
*
pArgs
=
&
shell
.
args
;
for
(
int
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
strcmp
(
argv
[
i
],
"--help"
)
==
0
||
strcmp
(
argv
[
i
],
"--usage"
)
==
0
||
strcmp
(
argv
[
i
],
"-?"
)
==
0
)
{
if
(
strcmp
(
argv
[
i
],
"--help"
)
==
0
||
strcmp
(
argv
[
i
],
"--usage"
)
==
0
||
strcmp
(
argv
[
i
],
"-?"
)
==
0
||
strcmp
(
argv
[
i
],
"/?"
)
==
0
)
{
shellParseSingleOpt
(
'?'
,
NULL
);
return
0
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录