Possibly broken since commit
4eac340 that stopped printing `-m=` because
it customized/specialized too much of the TypedOption::print() code.
}
template <>
-inline
-void
-TypedOption<CharacterSetOptionValue>::print(std::ostream &os) const
+inline void
+TypedOption<CharacterSetOptionValue>::printValue(std::ostream &os) const
{
recipient_->value.printChars(os); // TODO: Quote if needed.
}
{
if (configured()) {
os << ' ' << (disabled() ? offName : onName);
- if (valued())
- os << '=' << recipient_->value;
+ if (valued()) {
+ os << '=';
+ printValue(os);
+ }
}
// else do not report the implicit default
}
private:
void import(const SBuf &rawValue) const { recipient_->value = rawValue; }
+ void printValue(std::ostream &os) const { os << recipient_->value; }
// The "mutable" specifier demarcates set-once Option kind/behavior from the
// ever-changing recipient of the actual admin-configured option value.