1
This commit is contained in:
parent
9cca8c139c
commit
4f72b8dba2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user