Provide a way to pass arguments to the benchmark script(s)
chocolateboy opened this issue · comments
First of all: thanks for this! I was sad when matcha fell into disrepair, and now I'm happy that it's come back even better and stronger
I'm trying to pass an argument to one of my benchmark scripts, but matcha is intercepting it and treating it as another script/module name, e.g.:
$ matcha benchmark.js foo
UnhandledPromiseRejectionWarning: Error: Cannot find module '/path/to/package/foo'
It would be nice if there was a way to distinguish matcha options from script options, e.g. by passing through any arguments after --
[1]:
$ matcha benchmark.js -- foo
# OK: passes "foo" to the script(s)
[1] https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean
Thanks for the kind words!
Good idea. PRs welcome if you'd like to give provide one, otherwise I can take care of it this weekend.