summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-05-22 17:50:13 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-05-22 21:35:02 -0400
commitd397d5a2fc1cae219f8f040a5be99cc21df55d32 (patch)
tree0afc1016dd99fb9036cdc05f4cc4e6b12b39d912 /src/option.h
parent33aa0cc3a6ad9485198c0e5abe694822811483b4 (diff)
downloadfork-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.h11
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;
}
}