Commit f6024104 authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato

checkasm: Add a --help option to checkasm

parent 2073ea11
......@@ -504,7 +504,16 @@ int main(int argc, char *argv[]) {
int ret = 0;
while (argc > 1) {
if (!strncmp(argv[1], "--bench", 7)) {
if (!strncmp(argv[1], "--help", 6)) {
"checkasm [options] <random seed>\n"
" <random seed> Numeric value to seed the rng\n"
" --test=<test_name> Test only <test_name>\n"
" --bench=<pattern> Test and benchmark the functions matching <pattern>\n"
" --list List the available tests\n"
return 0;
} else if (!strncmp(argv[1], "--bench", 7)) {
#ifndef readtime
"checkasm: --bench is not supported on your system\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment