
6 May
2004
6 May
'04
5:10 p.m.
Rob Stewart wrote:
From: Vladimir Prus <ghost@cs.msu.su>
Neal D. Becker wrote:
1. Is it possible to expand --help so that it also gives the default values of options? Obviously, it's not likely to tell defaults that it doesn't no about, but at least the ones specified by default_value()?
I need to think about it. The biggest issue I see that that it would mean that if you have option of type T then T would be required to have operator<<, which might be too severe limitation.
Require that all default_value()'s provide a default value string either from operator << or explicitly when supplying the default value?
default_value(x) -> must support operator <<(x) default_value(x, "x") -> no need for operator <<(x)
Good idea!