Hi Serguei, the problem is, that if I make the -gz flag a jlong argument, I cannot just use '-gz'. This causes DCmdArgument<jlong>::parse_value() to be called with a NULL string, which leads to an error. That is why a used a string argument in my code. But using a string when I really mean an integer seems strange too.
Best regards, Ralf -----Original Message----- From: serguei.spit...@oracle.com <serguei.spit...@oracle.com> Sent: Dienstag, 11. Februar 2020 20:42 To: Schmelter, Ralf <ralf.schmel...@sap.com>; Yasumasa Suenaga <suen...@oss.nttdata.com>; OpenJDK Serviceability <serviceability-dev@openjdk.java.net> Cc: yasue...@gmail.com Subject: Re: RFR(L) 8237354: Add option to jcmd to write a gzipped heap dump Hi Ralf, I'd suggest for the option format something like this: -gz[=level] where level is an int. The part [=level] is optional. The level is 0 by default (if it is not set). Thanks, Serguei