MCPcopy Create free account
hub / github.com/rambaut/figtree / hasOption

Method hasOption

src/figtree/application/Arguments.java:418–425  ·  view source on GitHub ↗

Does an argument with label exist?

(String label)

Source from the content-addressed store, hash-verified

416 * Does an argument with label exist?
417 */
418 public boolean hasOption(String label) {
419 int n = findOption(label);
420 if (n == -1) {
421 return false;
422 }
423
424 return options[n].isAvailable;
425 }
426
427 /**
428 * Return the value of an integer option

Callers 1

mainMethod · 0.95

Calls 1

findOptionMethod · 0.95

Tested by

no test coverage detected