Skip to content

Commit 17a7e18

Browse files
committed
opt:完善help
1 parent bb09532 commit 17a7e18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/main/args_parser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ void ArgsParser::printHelp(const std::string &proc_name)
144144
<< " -s KEY=VALUE set config field" << endl
145145
<< " -p display config" << endl
146146
<< " -n don't run" << endl
147+
<< " --args start application's arguments" << endl
147148
<< endl
148149
<< "EXAMPLE" << endl
149150
<< " " << proc_name << endl
@@ -153,6 +154,7 @@ void ArgsParser::printHelp(const std::string &proc_name)
153154
<< " " << proc_name << R"( -s 'log.filelog.enable=true' -s 'log.filelog.path="/tmp/"')" << endl
154155
<< " " << proc_name << R"( -s 'log.filelog={"enable":true,"path":"/tmp/"}')" << endl
155156
<< " " << proc_name << R"( -c somewhere/conf.json -s 'thread_pool.min=2')" << endl
157+
<< " " << proc_name << R"( -c xxx.json --args abc 123)" << endl
156158
<< endl;
157159
}
158160

0 commit comments

Comments
 (0)