From d397d5a2fc1cae219f8f040a5be99cc21df55d32 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 22 May 2010 17:50:13 -0400 Subject: Made the output from --options better looking --- src/option.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/option.h b/src/option.h index 9688171e..cd3cd594 100644 --- a/src/option.h +++ b/src/option.h @@ -90,13 +90,16 @@ public: void report(std::ostream& out) const { if (handled && source) { + out.width(24); + out << std::right << desc(); if (wants_arg) { - out << desc() << " => "; - value.dump(out); + out << " = "; + value.print(out, 42); } else { - out << desc(); + out.width(45); + out << ' '; } - out << " <" << *source << ">" << std::endl; + out << std::left << *source << std::endl; } } -- cgit v1.2.3