Skip to content

Commit

Permalink
Capitalize order options for consistency with benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalobg committed May 30, 2024
1 parent 51231ac commit c2d9ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ void parseArguments(int argc, char *argv[])
{
if (++i >= argc)
{
std::cerr << "Expected benchmark order after --order. Options: \"classic\" (default), \"isolated\"."
std::cerr << "Expected benchmark order after --order. Options: \"Classic\" (default), \"Isolated\"."
<< std::endl;
exit(EXIT_FAILURE);
}
auto key = std::string(argv[i]);
if (key == "isolated")
if (key == "Isolated")
{
order = BenchOrder::Isolated;
}
Expand Down Expand Up @@ -573,7 +573,7 @@ void parseArguments(int argc, char *argv[])
std::cout << " --float Use floats (rather than doubles)" << std::endl;
std::cout << " -o --only NAME Only run one benchmark (see --print-names)" << std::endl;
std::cout << " --print-names Prints all available benchmark names" << std::endl;
std::cout << " --order Benchmark run order: \"classic\" (default) or \"isolated\"." << std::endl;
std::cout << " --order Benchmark run order: \"Classic\" (default) or \"Isolated\"." << std::endl;
std::cout << " --csv Output as csv table" << std::endl;
std::cout << " --megabytes Use MB=10^6 for bandwidth calculation (default)" << std::endl;
std::cout << " --mibibytes Use MiB=2^20 for bandwidth calculation (default MB=10^6)" << std::endl;
Expand Down

0 comments on commit c2d9ef5

Please sign in to comment.