Commit 2c1149e4 authored by Pavel Vainerman's avatar Pavel Vainerman

(iotest): исправил ошибку. Не все заявленные аргументы командной строки

обрабатывались getopt-ом.
parent 61f70011
...@@ -33,6 +33,7 @@ static struct option longopts[] = { ...@@ -33,6 +33,7 @@ static struct option longopts[] = {
{ NULL, 0, 0, 0 } { NULL, 0, 0, 0 }
}; };
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
enum Command enum Command
{ {
cmdNOP, cmdNOP,
...@@ -66,7 +67,7 @@ int main(int argc, char* argv[]) ...@@ -66,7 +67,7 @@ int main(int argc, char* argv[])
memset(chan,-1,sizeof(chan)); memset(chan,-1,sizeof(chan));
while( (opt = getopt_long(argc, argv, "habr:w:i:o:s:d:c:p:m:q:",longopts,&optindex)) != -1 ) while( (opt = getopt_long(argc, argv, "habvr:w:i:o:s:d:c:p:m:q:x:z:",longopts,&optindex)) != -1 )
{ {
switch (opt) switch (opt)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment