Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--help not supported? #702

Closed
oxalica opened this issue Jul 19, 2023 · 0 comments · Fixed by #703
Closed

--help not supported? #702

oxalica opened this issue Jul 19, 2023 · 0 comments · Fixed by #703

Comments

@oxalica
Copy link
Contributor

oxalica commented Jul 19, 2023

I want to get a quick help of CLI parameters of criterion benches. Thus I tried:
cargo bench --bench=mybench -- --help
But it gives:

> cargo bench --bench=mybench -- --help
    Finished bench [optimized + debuginfo] target(s) in 0.03s
     Running benches/mybench.rs (/home/oxa/.cache/testt-target/release/deps/mybench-c6d0eae38261b75f)
Gnuplot not found, using plotters backend
error: unexpected argument found
error: bench failed, to rerun pass `--bench mybench`

Caused by:
  process didn't exit successfully: `/home/oxa/.cache/testt-target/release/deps/mybench-c6d0eae38261b75f --help --bench` (exit status: 2)

Even if I directly run the executable file, without cargo. It shows the same error.

> /home/oxa/.cache/testt-target/release/deps/mybench-c6d0eae38261b75f --help
Gnuplot not found, using plotters backend
error: unexpected argument found

I already have harness = false and other flags like --baseline all work. Just that --help is not recognized. Is this intentional or something going wrong?

I'm using criterion v0.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant