blob: 8633bef934014931f67991b6a1e9aafc13f4f738 [file] [log] [blame]
Chris Lattnerdbab15a2001-07-23 17:17:47 +00001//===-- CommandLine.cpp - Command line parser implementation --------------===//
2//
3// This class implements a command line argument processor that is useful when
4// creating a tool. It provides a simple, minimalistic interface that is easily
5// extensible and supports nonlocal (library) command line options.
6//
Chris Lattner03fe1bd2001-07-23 23:04:07 +00007// Note that rather than trying to figure out what this code does, you could try
8// reading the library documentation located in docs/CommandLine.html
9//
Chris Lattnerdbab15a2001-07-23 17:17:47 +000010//===----------------------------------------------------------------------===//
11
Chris Lattnercee8f9a2001-11-27 00:03:19 +000012#include "Support/CommandLine.h"
13#include "Support/STLExtras.h"
Chris Lattnerdbab15a2001-07-23 17:17:47 +000014#include <vector>
15#include <algorithm>
16#include <map>
17#include <set>
Chris Lattner697954c2002-01-20 22:54:45 +000018#include <iostream>
Chris Lattner7f1576f2002-02-24 23:02:12 +000019
Chris Lattnerdbab15a2001-07-23 17:17:47 +000020using namespace cl;
Chris Lattner697954c2002-01-20 22:54:45 +000021using std::map;
22using std::pair;
23using std::vector;
24using std::string;
25using std::cerr;
Chris Lattnerdbab15a2001-07-23 17:17:47 +000026
27// Return the global command line option vector. Making it a function scoped
Chris Lattnerf78032f2001-11-26 18:58:34 +000028// static ensures that it will be initialized correctly before its first use.
Chris Lattnerdbab15a2001-07-23 17:17:47 +000029//
30static map<string, Option*> &getOpts() {
31 static map<string,Option*> CommandLineOptions;
32 return CommandLineOptions;
33}
34
35static void AddArgument(const string &ArgName, Option *Opt) {
36 if (getOpts().find(ArgName) != getOpts().end()) {
37 cerr << "CommandLine Error: Argument '" << ArgName
Chris Lattner9c9be482002-01-31 00:42:56 +000038 << "' defined more than once!\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +000039 } else {
Chris Lattnerf78032f2001-11-26 18:58:34 +000040 // Add argument to the argument map!
Chris Lattner697954c2002-01-20 22:54:45 +000041 getOpts().insert(std::make_pair(ArgName, Opt));
Chris Lattnerdbab15a2001-07-23 17:17:47 +000042 }
43}
44
45static const char *ProgramName = 0;
46static const char *ProgramOverview = 0;
47
Chris Lattnercaccd762001-10-27 05:54:17 +000048static inline bool ProvideOption(Option *Handler, const char *ArgName,
49 const char *Value, int argc, char **argv,
50 int &i) {
51 // Enforce value requirements
52 switch (Handler->getValueExpectedFlag()) {
53 case ValueRequired:
54 if (Value == 0 || *Value == 0) { // No value specified?
55 if (i+1 < argc) { // Steal the next argument, like for '-o filename'
56 Value = argv[++i];
57 } else {
58 return Handler->error(" requires a value!");
59 }
60 }
61 break;
62 case ValueDisallowed:
63 if (*Value != 0)
64 return Handler->error(" does not allow a value! '" +
65 string(Value) + "' specified.");
66 break;
67 case ValueOptional: break;
68 default: cerr << "Bad ValueMask flag! CommandLine usage error:"
Chris Lattner697954c2002-01-20 22:54:45 +000069 << Handler->getValueExpectedFlag() << "\n"; abort();
Chris Lattnercaccd762001-10-27 05:54:17 +000070 }
71
72 // Run the handler now!
73 return Handler->addOccurance(ArgName, Value);
74}
75
Chris Lattnerf78032f2001-11-26 18:58:34 +000076// ValueGroupedArgs - Return true if the specified string is valid as a group
77// of single letter arguments stuck together like the 'ls -la' case.
78//
79static inline bool ValidGroupedArgs(string Args) {
80 for (unsigned i = 0; i < Args.size(); ++i) {
81 map<string, Option*>::iterator I = getOpts().find(string(1, Args[i]));
82 if (I == getOpts().end()) return false; // Make sure option exists
83
84 // Grouped arguments have no value specified, make sure that if this option
85 // exists that it can accept no argument.
86 //
87 switch (I->second->getValueExpectedFlag()) {
88 case ValueDisallowed:
89 case ValueOptional: break;
90 default: return false;
91 }
92 }
93
94 return true;
95}
Chris Lattnercaccd762001-10-27 05:54:17 +000096
Chris Lattnerdbab15a2001-07-23 17:17:47 +000097void cl::ParseCommandLineOptions(int &argc, char **argv,
Chris Lattnerf78032f2001-11-26 18:58:34 +000098 const char *Overview = 0, int Flags = 0) {
Chris Lattnerdbab15a2001-07-23 17:17:47 +000099 ProgramName = argv[0]; // Save this away safe and snug
100 ProgramOverview = Overview;
101 bool ErrorParsing = false;
102
103 // Loop over all of the arguments... processing them.
104 for (int i = 1; i < argc; ++i) {
105 Option *Handler = 0;
106 const char *Value = "";
107 const char *ArgName = "";
108 if (argv[i][0] != '-') { // Unnamed argument?
Chris Lattner3805e4c2001-07-25 18:40:49 +0000109 map<string, Option*>::iterator I = getOpts().find("");
110 Handler = I != getOpts().end() ? I->second : 0;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000111 Value = argv[i];
112 } else { // We start with a - or --, eat dashes
113 ArgName = argv[i]+1;
114 while (*ArgName == '-') ++ArgName; // Eat leading dashes
115
116 const char *ArgNameEnd = ArgName;
Chris Lattnerf78032f2001-11-26 18:58:34 +0000117 while (*ArgNameEnd && *ArgNameEnd != '=')
118 ++ArgNameEnd; // Scan till end of argument name...
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000119
120 Value = ArgNameEnd;
121 if (*Value) // If we have an equals sign...
122 ++Value; // Advance to value...
123
124 if (*ArgName != 0) {
Chris Lattnerf78032f2001-11-26 18:58:34 +0000125 string RealName(ArgName, ArgNameEnd);
Chris Lattner3805e4c2001-07-25 18:40:49 +0000126 // Extract arg name part
Chris Lattnerf78032f2001-11-26 18:58:34 +0000127 map<string, Option*>::iterator I = getOpts().find(RealName);
128
129 if (I == getOpts().end() && !*Value && RealName.size() > 1) {
130 // If grouping of single letter arguments is enabled, see if this is a
131 // legal grouping...
132 //
133 if (!(Flags & DisableSingleLetterArgGrouping) &&
134 ValidGroupedArgs(RealName)) {
135
136 for (unsigned i = 0; i < RealName.size(); ++i) {
137 char ArgName[2] = { 0, 0 }; int Dummy;
138 ArgName[0] = RealName[i];
139 I = getOpts().find(ArgName);
140 assert(I != getOpts().end() && "ValidGroupedArgs failed!");
141
142 // Because ValueRequired is an invalid flag for grouped arguments,
143 // we don't need to pass argc/argv in...
144 //
145 ErrorParsing |= ProvideOption(I->second, ArgName, "",
146 0, 0, Dummy);
147 }
148 continue;
149 } else if (Flags & EnableSingleLetterArgValue) {
150 // Check to see if the first letter is a single letter argument that
151 // have a value that is equal to the rest of the string. If this
152 // is the case, recognize it now. (Example: -lfoo for a linker)
153 //
154 I = getOpts().find(string(1, RealName[0]));
155 if (I != getOpts().end()) {
156 // If we are successful, fall through to later processing, by
157 // setting up the argument name flags and value fields.
158 //
159 ArgNameEnd = ArgName+1;
160 Value = ArgNameEnd;
161 }
162 }
163 }
164
165
Chris Lattner3805e4c2001-07-25 18:40:49 +0000166 Handler = I != getOpts().end() ? I->second : 0;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000167 }
168 }
169
170 if (Handler == 0) {
171 cerr << "Unknown command line argument '" << argv[i] << "'. Try: "
Chris Lattnerf038acb2001-10-24 06:21:56 +0000172 << argv[0] << " --help'\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000173 ErrorParsing = true;
174 continue;
175 }
176
Chris Lattnercaccd762001-10-27 05:54:17 +0000177 ErrorParsing |= ProvideOption(Handler, ArgName, Value, argc, argv, i);
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000178
Chris Lattnercaccd762001-10-27 05:54:17 +0000179 // If this option should consume all arguments that come after it...
180 if (Handler->getNumOccurancesFlag() == ConsumeAfter) {
181 for (++i; i < argc; ++i)
182 ErrorParsing |= ProvideOption(Handler, ArgName, argv[i], argc, argv, i);
183 }
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000184 }
185
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000186 // Loop over args and make sure all required args are specified!
187 for (map<string, Option*>::iterator I = getOpts().begin(),
188 E = getOpts().end(); I != E; ++I) {
189 switch (I->second->getNumOccurancesFlag()) {
190 case Required:
191 case OneOrMore:
Chris Lattnerf038acb2001-10-24 06:21:56 +0000192 if (I->second->getNumOccurances() == 0) {
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000193 I->second->error(" must be specified at least once!");
Chris Lattnerf038acb2001-10-24 06:21:56 +0000194 ErrorParsing = true;
195 }
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000196 // Fall through
197 default:
198 break;
199 }
200 }
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000201
202 // Free all of the memory allocated to the vector. Command line options may
203 // only be processed once!
204 getOpts().clear();
205
206 // If we had an error processing our arguments, don't let the program execute
207 if (ErrorParsing) exit(1);
208}
209
210//===----------------------------------------------------------------------===//
211// Option Base class implementation
212//
213Option::Option(const char *argStr, const char *helpStr, int flags)
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000214 : NumOccurances(0), Flags(flags), ArgStr(argStr), HelpStr(helpStr) {
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000215 AddArgument(ArgStr, this);
216}
217
218bool Option::error(string Message, const char *ArgName = 0) {
219 if (ArgName == 0) ArgName = ArgStr;
Chris Lattner697954c2002-01-20 22:54:45 +0000220 cerr << "-" << ArgName << " option" << Message << "\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000221 return true;
222}
223
224bool Option::addOccurance(const char *ArgName, const string &Value) {
225 NumOccurances++; // Increment the number of times we have been seen
226
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000227 switch (getNumOccurancesFlag()) {
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000228 case Optional:
229 if (NumOccurances > 1)
230 return error(": may only occur zero or one times!", ArgName);
231 break;
232 case Required:
233 if (NumOccurances > 1)
234 return error(": must occur exactly one time!", ArgName);
235 // Fall through
236 case OneOrMore:
Chris Lattnercaccd762001-10-27 05:54:17 +0000237 case ZeroOrMore:
238 case ConsumeAfter: break;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000239 default: return error(": bad num occurances flag value!");
240 }
241
242 return handleOccurance(ArgName, Value);
243}
244
245// Return the width of the option tag for printing...
246unsigned Option::getOptionWidth() const {
247 return std::strlen(ArgStr)+6;
248}
249
250void Option::printOptionInfo(unsigned GlobalWidth) const {
251 unsigned L = std::strlen(ArgStr);
252 if (L == 0) return; // Don't print the empty arg like this!
253 cerr << " -" << ArgStr << string(GlobalWidth-L-6, ' ') << " - "
Chris Lattner697954c2002-01-20 22:54:45 +0000254 << HelpStr << "\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000255}
256
257
258//===----------------------------------------------------------------------===//
259// Boolean/flag command line option implementation
260//
261
262bool Flag::handleOccurance(const char *ArgName, const string &Arg) {
263 if (Arg == "" || Arg == "true" || Arg == "TRUE" || Arg == "True" ||
264 Arg == "1") {
265 Value = true;
266 } else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
267 Value = false;
268 } else {
Chris Lattnerd215fd12001-10-13 06:53:19 +0000269 return error(": '" + Arg +
270 "' is invalid value for boolean argument! Try 0 or 1");
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000271 }
272
273 return false;
274}
275
276//===----------------------------------------------------------------------===//
277// Integer valued command line option implementation
278//
279bool Int::handleOccurance(const char *ArgName, const string &Arg) {
280 const char *ArgStart = Arg.c_str();
281 char *End;
282 Value = (int)strtol(ArgStart, &End, 0);
283 if (*End != 0)
284 return error(": '" + Arg + "' value invalid for integer argument!");
285 return false;
286}
287
288//===----------------------------------------------------------------------===//
289// String valued command line option implementation
290//
291bool String::handleOccurance(const char *ArgName, const string &Arg) {
Chris Lattner1e78f362001-07-23 19:27:24 +0000292 *this = Arg;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000293 return false;
294}
295
296//===----------------------------------------------------------------------===//
Chris Lattnerd215fd12001-10-13 06:53:19 +0000297// StringList valued command line option implementation
298//
299bool StringList::handleOccurance(const char *ArgName, const string &Arg) {
Chris Lattnercaccd762001-10-27 05:54:17 +0000300 push_back(Arg);
Chris Lattnerd215fd12001-10-13 06:53:19 +0000301 return false;
302}
303
304//===----------------------------------------------------------------------===//
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000305// Enum valued command line option implementation
306//
307void EnumBase::processValues(va_list Vals) {
308 while (const char *EnumName = va_arg(Vals, const char *)) {
309 int EnumVal = va_arg(Vals, int);
310 const char *EnumDesc = va_arg(Vals, const char *);
Chris Lattner697954c2002-01-20 22:54:45 +0000311 ValueMap.push_back(std::make_pair(EnumName, // Add value to value map
312 std::make_pair(EnumVal, EnumDesc)));
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000313 }
314}
315
316// registerArgs - notify the system about these new arguments
317void EnumBase::registerArgs() {
318 for (unsigned i = 0; i < ValueMap.size(); ++i)
319 AddArgument(ValueMap[i].first, this);
320}
321
322const char *EnumBase::getArgName(int ID) const {
323 for (unsigned i = 0; i < ValueMap.size(); ++i)
324 if (ID == ValueMap[i].second.first) return ValueMap[i].first;
325 return "";
326}
327const char *EnumBase::getArgDescription(int ID) const {
328 for (unsigned i = 0; i < ValueMap.size(); ++i)
329 if (ID == ValueMap[i].second.first) return ValueMap[i].second.second;
330 return "";
331}
332
333
334
335bool EnumValueBase::handleOccurance(const char *ArgName, const string &Arg) {
336 unsigned i;
337 for (i = 0; i < ValueMap.size(); ++i)
338 if (ValueMap[i].first == Arg) break;
Chris Lattner9c9be482002-01-31 00:42:56 +0000339
340 if (i == ValueMap.size()) {
341 string Alternatives;
342 for (i = 0; i < ValueMap.size(); ++i) {
343 if (i) Alternatives += ", ";
344 Alternatives += ValueMap[i].first;
345 }
346
347 return error(": unrecognized alternative '" + Arg +
348 "'! Alternatives are: " + Alternatives);
349 }
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000350 Value = ValueMap[i].second.first;
351 return false;
352}
353
354// Return the width of the option tag for printing...
355unsigned EnumValueBase::getOptionWidth() const {
356 unsigned BaseSize = Option::getOptionWidth();
357 for (unsigned i = 0; i < ValueMap.size(); ++i)
Chris Lattner7f1576f2002-02-24 23:02:12 +0000358 BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+8);
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000359 return BaseSize;
360}
361
362// printOptionInfo - Print out information about this option. The
363// to-be-maintained width is specified.
364//
365void EnumValueBase::printOptionInfo(unsigned GlobalWidth) const {
366 Option::printOptionInfo(GlobalWidth);
367 for (unsigned i = 0; i < ValueMap.size(); ++i) {
368 unsigned NumSpaces = GlobalWidth-strlen(ValueMap[i].first)-8;
369 cerr << " =" << ValueMap[i].first << string(NumSpaces, ' ') << " - "
370 << ValueMap[i].second.second;
371
372 if (i == 0) cerr << " (default)";
Chris Lattner697954c2002-01-20 22:54:45 +0000373 cerr << "\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000374 }
375}
376
377//===----------------------------------------------------------------------===//
378// Enum flags command line option implementation
379//
380
381bool EnumFlagsBase::handleOccurance(const char *ArgName, const string &Arg) {
382 return EnumValueBase::handleOccurance("", ArgName);
383}
384
385unsigned EnumFlagsBase::getOptionWidth() const {
386 unsigned BaseSize = 0;
387 for (unsigned i = 0; i < ValueMap.size(); ++i)
Chris Lattner7f1576f2002-02-24 23:02:12 +0000388 BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6);
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000389 return BaseSize;
390}
391
392void EnumFlagsBase::printOptionInfo(unsigned GlobalWidth) const {
393 for (unsigned i = 0; i < ValueMap.size(); ++i) {
394 unsigned L = std::strlen(ValueMap[i].first);
395 cerr << " -" << ValueMap[i].first << string(GlobalWidth-L-6, ' ') << " - "
396 << ValueMap[i].second.second;
397 if (i == 0) cerr << " (default)";
Chris Lattner697954c2002-01-20 22:54:45 +0000398 cerr << "\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000399 }
400}
401
402
403//===----------------------------------------------------------------------===//
404// Enum list command line option implementation
405//
406
407bool EnumListBase::handleOccurance(const char *ArgName, const string &Arg) {
408 unsigned i;
409 for (i = 0; i < ValueMap.size(); ++i)
410 if (ValueMap[i].first == string(ArgName)) break;
411 if (i == ValueMap.size())
412 return error(": CommandLine INTERNAL ERROR", ArgName);
413 Values.push_back(ValueMap[i].second.first);
414 return false;
415}
416
417// Return the width of the option tag for printing...
418unsigned EnumListBase::getOptionWidth() const {
419 unsigned BaseSize = 0;
420 for (unsigned i = 0; i < ValueMap.size(); ++i)
Chris Lattner7f1576f2002-02-24 23:02:12 +0000421 BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6);
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000422 return BaseSize;
423}
424
425
426// printOptionInfo - Print out information about this option. The
427// to-be-maintained width is specified.
428//
429void EnumListBase::printOptionInfo(unsigned GlobalWidth) const {
430 for (unsigned i = 0; i < ValueMap.size(); ++i) {
431 unsigned L = std::strlen(ValueMap[i].first);
432 cerr << " -" << ValueMap[i].first << string(GlobalWidth-L-6, ' ') << " - "
Chris Lattner697954c2002-01-20 22:54:45 +0000433 << ValueMap[i].second.second << "\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000434 }
435}
436
437
438//===----------------------------------------------------------------------===//
439// Help option... always automatically provided.
440//
441namespace {
442
443// isHidden/isReallyHidden - Predicates to be used to filter down arg lists.
444inline bool isHidden(pair<string, Option *> &OptPair) {
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000445 return OptPair.second->getOptionHiddenFlag() >= Hidden;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000446}
447inline bool isReallyHidden(pair<string, Option *> &OptPair) {
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000448 return OptPair.second->getOptionHiddenFlag() == ReallyHidden;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000449}
450
451class Help : public Option {
452 unsigned MaxArgLen;
453 const Option *EmptyArg;
454 const bool ShowHidden;
455
456 virtual bool handleOccurance(const char *ArgName, const string &Arg) {
457 // Copy Options into a vector so we can sort them as we like...
458 vector<pair<string, Option*> > Options;
Chris Lattner697954c2002-01-20 22:54:45 +0000459 copy(getOpts().begin(), getOpts().end(), std::back_inserter(Options));
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000460
461 // Eliminate Hidden or ReallyHidden arguments, depending on ShowHidden
462 Options.erase(remove_if(Options.begin(), Options.end(),
Chris Lattner697954c2002-01-20 22:54:45 +0000463 std::ptr_fun(ShowHidden ? isReallyHidden : isHidden)),
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000464 Options.end());
465
466 // Eliminate duplicate entries in table (from enum flags options, f.e.)
Chris Lattner697954c2002-01-20 22:54:45 +0000467 std::set<Option*> OptionSet;
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000468 for (unsigned i = 0; i < Options.size(); )
469 if (OptionSet.count(Options[i].second) == 0)
470 OptionSet.insert(Options[i++].second); // Add to set
471 else
472 Options.erase(Options.begin()+i); // Erase duplicate
473
474
475 if (ProgramOverview)
Chris Lattner697954c2002-01-20 22:54:45 +0000476 cerr << "OVERVIEW:" << ProgramOverview << "\n";
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000477 // TODO: Sort options by some criteria
478
479 cerr << "USAGE: " << ProgramName << " [options]\n\n";
480 // TODO: print usage nicer
481
482 // Compute the maximum argument length...
483 MaxArgLen = 0;
484 for_each(Options.begin(), Options.end(),
485 bind_obj(this, &Help::getMaxArgLen));
486
487 cerr << "OPTIONS:\n";
488 for_each(Options.begin(), Options.end(),
489 bind_obj(this, &Help::printOption));
490
491 return true; // Displaying help is cause to terminate the program
492 }
493
494 void getMaxArgLen(pair<string, Option *> OptPair) {
495 const Option *Opt = OptPair.second;
496 if (Opt->ArgStr[0] == 0) EmptyArg = Opt; // Capture the empty arg if exists
Chris Lattner697954c2002-01-20 22:54:45 +0000497 MaxArgLen = std::max(MaxArgLen, Opt->getOptionWidth());
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000498 }
499
500 void printOption(pair<string, Option *> OptPair) {
501 const Option *Opt = OptPair.second;
502 Opt->printOptionInfo(MaxArgLen);
503 }
504
505public:
506 inline Help(const char *ArgVal, const char *HelpVal, bool showHidden)
507 : Option(ArgVal, HelpVal, showHidden ? Hidden : 0), ShowHidden(showHidden) {
508 EmptyArg = 0;
509 }
510};
511
512Help HelpOp("help", "display available options"
Chris Lattnerdc4693d2001-07-23 23:02:45 +0000513 " (--help-hidden for more)", false);
Chris Lattnerdbab15a2001-07-23 17:17:47 +0000514Help HelpHiddenOpt("help-hidden", "display all available options", true);
515
516} // End anonymous namespace