utils: Make uhd_config_info print help by default

This commit is contained in:
Derek Kozel 2020-06-05 20:55:29 +01:00 committed by michael-west
parent 966e3637b4
commit 7e27726aa7

View File

@ -43,7 +43,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
po::notify(vm);
// Print the help message
if (vm.count("help") > 0) {
if (vm.count("help") > 0 or vm.empty()) {
std::cout << boost::format("UHD Config Info - %s") % desc << std::endl;
return EXIT_FAILURE;
}