Setting `gc` option calls `mocha --gc` instead of `mocha -gc`
drifkin opened this issue · 4 comments
drifkin commented
It looks like this is the only argument that mocha accepts that is more than one character, but should only have a single dash. The current workaround is to set "expose-gc" to true, which ends up calling mocha --expose-gc
.
knpwrs commented
Hmm. That's odd that they would break unix convention for one argument. Do you absolutely need to use gc
? I'm not a fan of special casing this argument in the code, I'd rather just put a note in the README
saying to use exposeGc
.
drifkin commented
Nope, I'm perfectly fine with using expose-gc
, it just took me a little while to figure out why gc
wasn't working. A note in the README
is plenty.
drifkin commented
Thanks!
knpwrs commented
Np. Published to npm
as version 2.0.2
which also removes the dependency on inflection
.