Added debug code "option.names"

Use "--debug option.names" to see all accepted (internal) option names.
This commit is contained in:
John Wiegley 2009-06-27 01:48:41 +01:00
parent 7b05595699
commit d0c47b1bc2

View file

@ -74,6 +74,7 @@ public:
handled(false), parent(NULL), value(), handled(false), parent(NULL), value(),
wants_arg(name[name_len - 1] == '_') { wants_arg(name[name_len - 1] == '_') {
TRACE_CTOR(option_t, "const char *, const char"); TRACE_CTOR(option_t, "const char *, const char");
DEBUG("option.names", "Option: " << name);
} }
option_t(const option_t& other) option_t(const option_t& other)
: name(other.name), : name(other.name),