Lines Matching refs:opt
47 String opt = words[0];
49 if (opt.length() == 0 && words.length >= 1) {
50 opt = words[1]; // initial "word" is empty due to leading ' '
53 if (opt.length() == 0) {
56 String[] prevWords = optmap.put(opt, words);
68 for (String opt : optmap.keySet()) {
69 sb.append(opt);
70 for (String spec : optmap.get(opt)) {
108 String opt;
112 opt = arg.substring(0, optlen);
113 if (optmap.containsKey(opt)) {
120 SortedMap<String, String[]> pfxmap = optmap.headMap(opt);
124 opt = arg.substring(0, optlen);
125 // (Note: We could cut opt down to its common prefix with
128 opt = opt.intern();
129 assert (arg.startsWith(opt));
130 assert (opt.length() == optlen);
131 String val = arg.substring(optlen); // arg == opt+val
133 // Execute the option processing specs for this opt.
139 String[] specs = optmap.get(opt);
177 resultString = (specarg.length() != 0) ? specarg.intern() : opt;
183 case '@': // change the effective opt name
184 opt = specarg.intern();
191 String negopt = (specarg.length() != 0) ? specarg.intern() : opt;
202 String old = properties.get(opt);
210 properties.put(opt, boolval);
229 String old = properties.get(opt);
239 properties.put(opt, strval);
244 + opt + ": " + spec);