Made the output from --options better looking

This commit is contained in:
John Wiegley 2010-05-22 17:50:13 -04:00
parent 33aa0cc3a6
commit d397d5a2fc

View file

@ -90,13 +90,16 @@ public:
void report(std::ostream& out) const { void report(std::ostream& out) const {
if (handled && source) { if (handled && source) {
out.width(24);
out << std::right << desc();
if (wants_arg) { if (wants_arg) {
out << desc() << " => "; out << " = ";
value.dump(out); value.print(out, 42);
} else { } else {
out << desc(); out.width(45);
out << ' ';
} }
out << " <" << *source << ">" << std::endl; out << std::left << *source << std::endl;
} }
} }