MCPcopy Create free account
hub / github.com/mozilla/rhino / usage

Method usage

examples/src/main/java/Shell.java:112–117  ·  view source on GitHub ↗

Print a usage message.

(String s)

Source from the content-addressed store, hash-verified

110
111 /** Print a usage message. */
112 private static void usage(String s) {
113 p("Didn't understand \"" + s + "\".");
114 p("Valid arguments are:");
115 p("-version 100|110|120|130|140|150|160|170");
116 System.exit(1);
117 }
118
119 /**
120 * Print a help message.

Callers 1

processOptionsMethod · 0.95

Calls 2

pMethod · 0.95
exitMethod · 0.45

Tested by

no test coverage detected