Commit 010cb1b4 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Print additional help messages when syntax is invalid.

parent a47829e1
......@@ -273,6 +273,7 @@ int reg_add(int argc, WCHAR *argvW[])
return run_add(root, path, value_name, value_empty, type, separator, data, force);
invalid:
output_message(STRING_INVALID_CMDLINE);
output_message(STRING_INVALID_SYNTAX);
output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
return 1;
}
......@@ -163,6 +163,7 @@ int reg_delete(int argc, WCHAR *argvW[])
return run_delete(root, path, key_name, value_name, value_empty, value_all, force);
invalid:
output_message(STRING_INVALID_CMDLINE);
output_message(STRING_INVALID_SYNTAX);
output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
return 1;
}
......@@ -373,6 +373,7 @@ int reg_query(int argc, WCHAR *argvW[])
return run_query(root, path, key_name, value_name, value_empty, recurse);
invalid:
output_message(STRING_INVALID_CMDLINE);
output_message(STRING_INVALID_SYNTAX);
output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
return 1;
}
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