This commit is contained in:
aozhiwei 2019-06-02 15:36:08 +08:00
parent 9cca8c139c
commit 4f72b8dba2

View File

@ -406,13 +406,23 @@ void App::UnInitLog()
bool App::ParseOpt()
{
int ch = 0;
while ((ch = getopt(argc, argv, "i:t:r:f:")) != -1) {
while ((ch = getopt(argc, argv, "i:t:r:f:h:p:")) != -1) {
switch (ch) {
case 'i':
{
instance_id = a8::XValue(optarg);
}
break;
case 'h':
{
wsp_host = a8::XValue(optarg).GetString();
}
break;
case 'p':
{
wsp_port = a8::XValue(optarg);
}
break;
case 't':
{
is_test_mode = true;