Commit 1f07bc02 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

winetest: Add support for --version, --help and /?.

parent 88c80635
......@@ -774,6 +774,8 @@ usage (void)
{
fprintf (stderr,
"Usage: winetest [OPTION]... [TESTS]\n\n"
" --help print this message and exit\n"
" --version print the build version and exit\n"
" -c console mode, no GUI\n"
" -e preserve the environment\n"
" -h print this message and exit\n"
......@@ -797,7 +799,15 @@ int main( int argc, char *argv[] )
for (i = 1; argv[i]; i++)
{
if (argv[i][0] != '-' || argv[i][2]) {
if (!strcmp(argv[i], "--help")) {
usage ();
exit (0);
}
else if (!strcmp(argv[i], "--version")) {
printf("%-12.12s\n", build_id[0] ? build_id : "unknown");
exit (0);
}
else if ((argv[i][0] != '-' && argv[i][0] != '/') || argv[i][2]) {
if (nb_filters == sizeof(filters)/sizeof(filters[0]))
{
report (R_ERROR, "Too many test filters specified");
......
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