MCPcopy Create free account
hub / github.com/BaseXdb/basex / run

Method run

basex-core/src/main/java/org/basex/core/cmd/Help.java:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 @Override
27 protected boolean run() throws IOException {
28 final String key = args[0];
29 if(key.isEmpty()) {
30 out.println(TRY_SPECIFIC_X);
31 for(final Cmd cmd : Cmd.values()) out.print(cmd.help(false));
32 } else {
33 final Cmd cmd = getOption(key, Cmd.class);
34 if(cmd == null) return error(UNKNOWN_CMD_X, this);
35 out.println(cmd.help(true));
36 }
37 return true;
38 }
39
40 @Override
41 public void addLocks() {

Callers

nothing calls this directly

Calls 7

helpMethod · 0.95
getOptionMethod · 0.80
printMethod · 0.65
isEmptyMethod · 0.45
printlnMethod · 0.45
valuesMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected