|
|
@ -102,6 +102,7 @@ void parse_args(all_args_t *args, int argc, char* argv[]) {
|
|
|
|
|
|
|
|
|
|
|
|
("gui.enable", bpo::value<bool>(&args->gui.enable)->default_value(false), "Enable GUI plots")
|
|
|
|
("gui.enable", bpo::value<bool>(&args->gui.enable)->default_value(false), "Enable GUI plots")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("log.rf_level", bpo::value<string>(&args->rf.log_level), "RF log level")
|
|
|
|
("log.phy_level", bpo::value<string>(&args->phy.log.phy_level), "PHY log level")
|
|
|
|
("log.phy_level", bpo::value<string>(&args->phy.log.phy_level), "PHY log level")
|
|
|
|
("log.phy_hex_limit", bpo::value<int>(&args->phy.log.phy_hex_limit), "PHY log hex dump limit")
|
|
|
|
("log.phy_hex_limit", bpo::value<int>(&args->phy.log.phy_hex_limit), "PHY log hex dump limit")
|
|
|
|
("log.phy_lib_level", bpo::value<string>(&args->phy.log.phy_lib_level)->default_value("none"), "PHY lib log level")
|
|
|
|
("log.phy_lib_level", bpo::value<string>(&args->phy.log.phy_lib_level)->default_value("none"), "PHY lib log level")
|
|
|
@ -275,6 +276,9 @@ void parse_args(all_args_t *args, int argc, char* argv[]) {
|
|
|
|
|
|
|
|
|
|
|
|
// Apply all_level to any unset layers
|
|
|
|
// Apply all_level to any unset layers
|
|
|
|
if (vm.count("log.all_level")) {
|
|
|
|
if (vm.count("log.all_level")) {
|
|
|
|
|
|
|
|
if (!vm.count("log.rf_level")) {
|
|
|
|
|
|
|
|
args->rf.log_level = args->log.all_level;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(!vm.count("log.phy_level")) {
|
|
|
|
if(!vm.count("log.phy_level")) {
|
|
|
|
args->phy.log.phy_level = args->log.all_level;
|
|
|
|
args->phy.log.phy_level = args->log.all_level;
|
|
|
|
}
|
|
|
|
}
|
|
|
|