From 948a5fd05285f602292f9b8ed9a2a5734f127d75 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 8 Jul 2011 12:03:14 -0700 Subject: uhd: benchmark example will print help if no rate specified --- host/examples/benchmark_rate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/examples') diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index db9932740..774b240d4 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -178,7 +178,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ po::notify(vm); //print the help message - if (vm.count("help")){ + if (vm.count("help") or (vm.count("rx_rate") + vm.count("tx_rate")) == 0){ std::cout << boost::format("UHD Benchmark Rate %s") % desc << std::endl; std::cout << " Specify --rx_rate for a receive-only test.\n" -- cgit v1.2.3