Commit 8d00b93f authored by Stefano Garzarella's avatar Stefano Garzarella Committed by David S. Miller

testing/vsock: print list of options and description

Since we now have several options, in the help we print the list
of all supported options and a brief description of them.
Signed-off-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a2b2425
...@@ -497,7 +497,18 @@ static void usage(void) ...@@ -497,7 +497,18 @@ static void usage(void)
"listen address and the client requires an address to\n" "listen address and the client requires an address to\n"
"connect to.\n" "connect to.\n"
"\n" "\n"
"The CID of the other side must be given with --peer-cid=<cid>.\n"); "The CID of the other side must be given with --peer-cid=<cid>.\n"
"\n"
"Options:\n"
" --help This help message\n"
" --control-host <host> Server IP address to connect to\n"
" --control-port <port> Server port to listen on/connect to\n"
" --mode client|server Server or client mode\n"
" --peer-cid <cid> CID of the other side\n"
" --list List of tests that will be executed\n"
" --skip <test_id> Test ID to skip;\n"
" use multiple --skip options to skip more tests\n"
);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
...@@ -257,7 +257,18 @@ static void usage(void) ...@@ -257,7 +257,18 @@ static void usage(void)
"listen address and the client requires an address to\n" "listen address and the client requires an address to\n"
"connect to.\n" "connect to.\n"
"\n" "\n"
"The CID of the other side must be given with --peer-cid=<cid>.\n"); "The CID of the other side must be given with --peer-cid=<cid>.\n"
"\n"
"Options:\n"
" --help This help message\n"
" --control-host <host> Server IP address to connect to\n"
" --control-port <port> Server port to listen on/connect to\n"
" --mode client|server Server or client mode\n"
" --peer-cid <cid> CID of the other side\n"
" --list List of tests that will be executed\n"
" --skip <test_id> Test ID to skip;\n"
" use multiple --skip options to skip more tests\n"
);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
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