tweaked help working for -t flag

This commit is contained in:
Ivan Bereziuk 2026-01-23 17:22:32 +01:00
parent f0e39a3491
commit 7371f3c188
3 changed files with 5 additions and 5 deletions

View File

@ -123,11 +123,11 @@ class Arguments {
}
public static void usage() {
System.out.println("Usage: jcmd <pid | main class> [-t] <command ...|PerfCounter.print|-f file>");
System.out.println("Usage: jcmd <pid | main class> <[-t] command ...|PerfCounter.print|-f file>");
System.out.println(" or: jcmd -l ");
System.out.println(" or: jcmd <-h | --help> ");
System.out.println(" ");
System.out.println(" -t flag ensures the dignostic command begins with a timestamp ");
System.out.println(" -t Show timestamp before running the command. ");
System.out.println(" ");
System.out.println(" command must be a valid jcmd command for the selected JVM. ");
System.out.println(" Use the command \"help\" to see which commands are available. ");

View File

@ -49,7 +49,7 @@ jcmd - send diagnostic command requests to a running Java Virtual Machine
Java processes with the specified name of the main class.
`-t`
: When used, the diagnostic commands output starts with a timestamp.
: Show timestamp before running the command.
*command*
: The `command` must be a valid `jcmd` command for the selected JVM. The list

View File

@ -1,8 +1,8 @@
Usage: jcmd <pid | main class> [-t] <command ...|PerfCounter.print|-f file>
Usage: jcmd <pid | main class> <[-t] command ...|PerfCounter.print|-f file>
or: jcmd -l
or: jcmd <-h | --help>
-t flag ensures the dignostic command begins with a timestamp
-t Show timestamp before running the command.
command must be a valid jcmd command for the selected JVM.
Use the command "help" to see which commands are available.