8203014: jcmd should output command list if no command is given

Reviewed-by: sspitsyn, simonis
This commit is contained in:
Thomas Stuefe 2018-05-29 20:57:42 +02:00
parent 8589446792
commit df16209bc5

@ -88,7 +88,9 @@ class Arguments {
}
if (listCounters != true && sb.length() == 0) {
throw new IllegalArgumentException("No command specified");
// Omitting the command shall cause the target VM to print out a list
// of available commands.
sb.append("help");
}
command = sb.toString().trim();