提交 abfff210 编写于 作者: M Martin Kletzander

Make vshDebug work when parsing parameters

The vshInit initializes ctl->debug by which vshDebug (which is also
called in vshParseArgv) decides whether to print out the message or
not.
上级 cc78d7ba
...@@ -3100,12 +3100,12 @@ main(int argc, char **argv) ...@@ -3100,12 +3100,12 @@ main(int argc, char **argv)
ctl->name = vshStrdup(ctl, defaultConn); ctl->name = vshStrdup(ctl, defaultConn);
} }
if (!vshParseArgv(ctl, argc, argv)) { if (!vshInit(ctl)) {
vshDeinit(ctl); vshDeinit(ctl);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (!vshInit(ctl)) { if (!vshParseArgv(ctl, argc, argv)) {
vshDeinit(ctl); vshDeinit(ctl);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册