* Besides the name and value of
* each entry, the output also
* contains the default value of
- * entries as well as the
- * documenting string given to
- * the @ref{declare_entry}
- * function if available.
+ * entries if it is different
+ * from the actual value, as well
+ * as the documenting string
+ * given to the
+ * @ref{declare_entry} function
+ * if available.
*/
std::ostream & print_parameters (std::ostream &out,
const OutputStyle style);
out << pd->entries[ptr->first].documentation << ", ";
// finally print the
- // default value
- out << "default: " << pd->entries[ptr->first].value
- << std::endl;
+ // default value, but
+ // only if it differs
+ // from the actual value
+ if (value != pd->entries[ptr->first].value)
+ out << "default: " << pd->entries[ptr->first].value
+ << std::endl;
}
break;
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams