It looks like the only default values allowed are None
, True
or False
. So if you set the default value ''
a value has to be passed in that will be passed to your function as a string.
http://hg.intevation.org/mercurial/crew/file/tip/mercurial/fancyopts.py#l85