diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-22 17:50:13 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-22 21:35:02 -0400 |
commit | d397d5a2fc1cae219f8f040a5be99cc21df55d32 (patch) | |
tree | 0afc1016dd99fb9036cdc05f4cc4e6b12b39d912 /src/option.h | |
parent | 33aa0cc3a6ad9485198c0e5abe694822811483b4 (diff) | |
download | fork-ledger-d397d5a2fc1cae219f8f040a5be99cc21df55d32.tar.gz fork-ledger-d397d5a2fc1cae219f8f040a5be99cc21df55d32.tar.bz2 fork-ledger-d397d5a2fc1cae219f8f040a5be99cc21df55d32.zip |
Made the output from --options better looking
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 11 |
1 files 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; } } |