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

Method parseArgs

basex-core/src/main/java/org/basex/BaseXGUI.java:124–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 @Override
125 protected void parseArgs() throws BaseXException {
126 final MainParser arg = new MainParser(this);
127 while(arg.more()) {
128 if(arg.dash()) {
129 final char c = arg.next();
130 if(c == 'd') {
131 // activate debug mode
132 Prop.debug = true;
133 } else {
134 throw arg.usage();
135 }
136 } else {
137 files.add(arg.string());
138 }
139 }
140 }
141
142 @Override
143 public String header() {

Callers 1

BaseXGUIMethod · 0.95

Calls 6

moreMethod · 0.95
dashMethod · 0.95
nextMethod · 0.95
usageMethod · 0.95
stringMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected