CLI arguments in `new-bench` command in `cabal`

200 views Asked by At

I'm trying to pass the --small option from hs-gauge benchmarking library.

I am looking to something similar to what is in stack so I could simply write:

cabal new-bench --benchmark-arguments="--small"

How can I pass the argument to the cabal new-bench command?

1

There are 1 answers

0
Li-yao Xia On BEST ANSWER

As of now, this usage is not supported by new-bench: https://github.com/haskell/cabal/issues/4643 (a workaround is to run the executable(s) manually)