Skip to content

Commit 7353edf

Browse files
committed
node footprint analyzer better help
1 parent b93b6f8 commit 7353edf

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/advanced/NodeFootprintAnalyzer.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,11 @@ public static void printHelp(PrintStream printStream) {
466466
printStream.println(" --no-headers Don't include header in .csv file (also works for .txt version)");
467467
printStream.println(" --output-dir Where to output the non-shortened files.");
468468
printStream.println(" Creates 'nfa-output' directory. Default: '/tmp'");
469+
printStream.println("Note: Files are stored in your selected output directory (of in '/tmp' if you didn't");
470+
printStream.println(" specify any), in the 'nfa-output' subdirectory. Each invocation of the tool creates");
471+
printStream.println(" another subdirectory in the 'nfa-output' direcotry with ISO date and time set as");
472+
printStream.println(" its name. If your platform supports it, a link called 'latest' is created that");
473+
printStream.println(" will always point to the directory containing the results of the latest run.");
469474
}
470475

471476
public static void main(String[] args) throws Exception {
@@ -485,7 +490,10 @@ public static void main(String[] args) throws Exception {
485490
} else if (args[i].equals("--output-dir")) {
486491
outDirModifiable = args[i + 1];
487492
i++;
488-
} else {
493+
} else if (args[i].equals("--help")) {
494+
printHelp(System.out);
495+
return;
496+
}else {
489497
System.err.println(String.format("Invalid option: \"%s\"", args[i]));
490498
printHelp(System.err);
491499
return;

0 commit comments

Comments
 (0)