Closed j3h closed 13 years ago
I should have created an issue for this one before pull request... Also, found two more bugs in handling of command line arguments and fixed them in my forked repository of snap-server dop/snap-server@6123d9076723c608fb455660f8a513c2f88c0953
Should be fixed as of snap 0.5.0. Please re-open if not.
This is with snap-server 0.4.1. For instance, providing --hostname=foo does not change the hostname that gets used.
I think I traced this down to the
mappend
implementation forOptionData
inSnap.Http.Server.Config
:In particular, the
Monoid
instance forConfig
prefers options from the second argument tomappend
, so:prefers options from
config a
, which isdefaultConfig
in thecommandLineConfig
case. I think thea
andb
need to be swapped in this expression.