Made the output from --options better looking
This commit is contained in:
parent
33aa0cc3a6
commit
d397d5a2fc
1 changed files with 7 additions and 4 deletions
11
src/option.h
11
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue