File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
src/org.graalvm.polybench/src/org/graalvm/polybench Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ def parser_help_message(cls):
69
69
return (
70
70
"additional benchmark arguments. By default, arguments are passed to the Polybench launcher, "
71
71
f"but you may use flags to forward arguments to specific components: "
72
- f"{ cls .MX_BENCHMARK_FLAG } for mx benchmark, "
73
- f"{ cls .VM_FLAG } for the host VM or native-image, or "
74
- f"{ cls .POLYBENCH_FLAG } for the Polybench launcher. "
72
+ f' "{ cls .MX_BENCHMARK_FLAG } " for mx benchmark, '
73
+ f' "{ cls .VM_FLAG } " for the host VM or native-image, or '
74
+ f' "{ cls .POLYBENCH_FLAG } " for the Polybench launcher (pass "--help" to see launcher help). '
75
75
f'For example: "-i 2 { cls .MX_BENCHMARK_FLAG } --fail-fast { cls .VM_FLAG } -ea '
76
76
f'{ cls .POLYBENCH_FLAG } --engine.TraceCompilation=true".'
77
77
)
@@ -410,6 +410,7 @@ def _create_parser() -> ArgumentParser:
410
410
"It is a thin wrapper around Polybench's mx benchmark integration that makes it easy to discover and run benchmarks. "
411
411
"It also supports batch execution of the benchmarks in a suite, which is convenient for defining CI jobs."
412
412
),
413
+ usage = "%(prog)s [options*] benchmarks [benchmark_arguments*]" ,
413
414
)
414
415
415
416
parser .add_argument (
Original file line number Diff line number Diff line change @@ -314,6 +314,16 @@ protected void printHelp(OptionCategory maxCategory) {
314
314
}
315
315
}
316
316
317
+ /**
318
+ * Suppress the runtime options printed by the parent implementation. Some of these options
319
+ * (like --jvm, --native) are handled by mx polybench, so using them in the launcher is
320
+ * discouraged (and confusing).
321
+ */
322
+ @ Override
323
+ protected void printDefaultHelp (OptionCategory helpCategory ) {
324
+ printHelp (helpCategory );
325
+ }
326
+
317
327
static String getExtension (String path ) {
318
328
int lastDot = path .lastIndexOf ('.' );
319
329
if (lastDot < 0 ) {
You can’t perform that action at this time.
0 commit comments