@@ -54,7 +54,7 @@ static void configure_cli11_log_args(CLI::App& app, log_appconfig& log_params)
5454 app.add_option (" --sdap_level" , log_params.sdap_level , " SDAP log level" )->capture_default_str ()->check (level_check);
5555 app.add_option (" --gtpu_level" , log_params.gtpu_level , " GTPU log level" )->capture_default_str ()->check (level_check);
5656 app.add_option (" --fapi_level" , log_params.fapi_level , " FAPI log level" )->capture_default_str ()->check (level_check);
57- app.add_option (" --hex_max_size" , log_params.hex_max_size , " Number of bytes to print in hex" )
57+ app.add_option (" --hex_max_size" , log_params.hex_max_size , " Maximum number of bytes to print in hex" )
5858 ->capture_default_str ()
5959 ->check (CLI::Range (0 , 1024 ));
6060 app.add_option (" --broadcast_enabled" ,
@@ -63,12 +63,10 @@ static void configure_cli11_log_args(CLI::App& app, log_appconfig& log_params)
6363 ->always_capture_default ();
6464 app.add_option (" --phy_rx_symbols_filename" ,
6565 log_params.phy_rx_symbols_filename ,
66- " Set to a valid file path to print the received symbols. " )
66+ " Set to a valid file path to print the received symbols" )
6767 ->always_capture_default ();
6868
69- // / Post-parsing callback. This allows us to
70- // / set the log level to "all" level, if no level
71- // / is provided.
69+ // Post-parsing callback. This allows us to set the log level to "all" level, if no level is provided.
7270 app.callback ([&]() {
7371 if (app.count (" --app_level" ) == 0 ) {
7472 log_params.app_level = log_params.all_level ;
@@ -132,14 +130,14 @@ static void configure_cli11_rf_driver_args(CLI::App& app, rf_driver_appconfig& r
132130{
133131 app.add_option (" --srate" , rf_driver_params.srate_MHz , " Sample rate in MHz" )->capture_default_str ();
134132 app.add_option (" --device_driver" , rf_driver_params.device_driver , " Device driver name" )->capture_default_str ();
135- app.add_option (" --device_args" , rf_driver_params.device_arguments , " Optional device arguments. " )
133+ app.add_option (" --device_args" , rf_driver_params.device_arguments , " Optional device arguments" )
136134 ->capture_default_str ();
137- app.add_option (" --tx_gain" , rf_driver_params.tx_gain_dB , " Transmit gain in decibels. " )->capture_default_str ();
138- app.add_option (" --rx_gain" , rf_driver_params.rx_gain_dB , " Receive gain in decibels. " )->capture_default_str ();
139- app.add_option (" --lo_offset" , rf_driver_params.lo_offset_MHz , " LO frequency offset in MHz. " )->capture_default_str ();
140- app.add_option (" --clock" , rf_driver_params.clock_source , " Clock source. " )->capture_default_str ();
141- app.add_option (" --sync" , rf_driver_params.synch_source , " Time synchronization source. " )->capture_default_str ();
142- app.add_option (" --otw_format" , rf_driver_params.otw_format , " Over-the-wire format. " )->capture_default_str ();
135+ app.add_option (" --tx_gain" , rf_driver_params.tx_gain_dB , " Transmit gain in decibels" )->capture_default_str ();
136+ app.add_option (" --rx_gain" , rf_driver_params.rx_gain_dB , " Receive gain in decibels" )->capture_default_str ();
137+ app.add_option (" --lo_offset" , rf_driver_params.lo_offset_MHz , " LO frequency offset in MHz" )->capture_default_str ();
138+ app.add_option (" --clock" , rf_driver_params.clock_source , " Clock source" )->capture_default_str ();
139+ app.add_option (" --sync" , rf_driver_params.synch_source , " Time synchronization source" )->capture_default_str ();
140+ app.add_option (" --otw_format" , rf_driver_params.otw_format , " Over-the-wire format" )->capture_default_str ();
143141 app.add_option_function <std::string>(
144142 " --time_alignment_calibration" ,
145143 [&rf_driver_params](const std::string& value) {
@@ -152,7 +150,7 @@ static void configure_cli11_rf_driver_args(CLI::App& app, rf_driver_appconfig& r
152150 },
153151 " Rx to Tx radio time alignment calibration in samples.\n "
154152 " Positive values reduce the RF transmission delay with respect\n "
155- " to the RF reception, while negative values increase it. " )
153+ " to the RF reception, while negative values increase it" )
156154 ->check ([](const std::string& value) -> std::string {
157155 // Check for valid option "auto".
158156 if (value == " auto" ) {
@@ -168,17 +166,17 @@ static void configure_cli11_rf_driver_args(CLI::App& app, rf_driver_appconfig& r
168166
169167static void configure_cli11_expert_phy_args (CLI::App& app, expert_phy_appconfig& expert_phy_params)
170168{
171- app.add_option (" --nof_ul_threads" , expert_phy_params.nof_ul_threads , " Number of threads to process uplink. " )
169+ app.add_option (" --nof_ul_threads" , expert_phy_params.nof_ul_threads , " Number of threads to process uplink" )
172170 ->capture_default_str ()
173171 ->check (CLI::Number);
174172 app.add_option (" --pusch_dec_max_iterations" ,
175173 expert_phy_params.pusch_decoder_max_iterations ,
176- " Maximum number of PUSCH LDPC decoder iterations. " )
174+ " Maximum number of PUSCH LDPC decoder iterations" )
177175 ->capture_default_str ()
178176 ->check (CLI::Number);
179177 app.add_option (" --pusch_dec_enable_early_stop" ,
180178 expert_phy_params.pusch_decoder_early_stop ,
181- " Enables PUSCH LDPC decoder early stop. " )
179+ " Enables PUSCH LDPC decoder early stop" )
182180 ->capture_default_str ();
183181}
184182
@@ -224,7 +222,9 @@ static void configure_cli11_prach_args(CLI::App& app, prach_appconfig& prach_par
224222
225223static void configure_cli11_amplitude_control_args (CLI::App& app, amplitude_control_appconfig& amplitude_params)
226224{
227- app.add_option (" --tx_gain_backoff" , amplitude_params.gain_backoff_dB , " Gain back-off to accommodate the signal PAPR" )
225+ app.add_option (" --tx_gain_backoff" ,
226+ amplitude_params.gain_backoff_dB ,
227+ " Gain back-off to accommodate the signal PAPR in decibels" )
228228 ->capture_default_str ();
229229 app.add_option (" --enable_clipping" , amplitude_params.enable_clipping , " Signal clipping" )->capture_default_str ();
230230 app.add_option (" --ceiling" , amplitude_params.power_ceiling_dBFS , " Clipping ceiling referenced to full scale" )
@@ -234,7 +234,7 @@ static void configure_cli11_amplitude_control_args(CLI::App& app, amplitude_cont
234234static void configure_cli11_common_cell_args (CLI::App& app, base_cell_appconfig& cell_params)
235235{
236236 app.add_option (" --pci" , cell_params.pci , " PCI" )->capture_default_str ()->check (CLI::Range (0 , 1007 ));
237- app.add_option (" --dl_arfcn" , cell_params.dl_arfcn , " Donwlink ARFCN" )->capture_default_str ();
237+ app.add_option (" --dl_arfcn" , cell_params.dl_arfcn , " Downlink ARFCN" )->capture_default_str ();
238238 add_auto_enum_option (app, " --band" , cell_params.band , " NR band" );
239239 app.add_option (" --common_scs" , cell_params.common_scs , " Cell common subcarrier spacing" )
240240 ->transform ([](const std::string& value) {
@@ -323,17 +323,18 @@ static void configure_cli11_rlc_um_args(CLI::App& app, rlc_um_appconfig& rlc_um_
323323static void configure_cli11_rlc_am_args (CLI::App& app, rlc_am_appconfig& rlc_am_params)
324324{
325325 CLI::App* rlc_tx_am_subcmd = app.add_subcommand (" tx" , " AM TX parameters" );
326- rlc_tx_am_subcmd->add_option (" --sn" , rlc_am_params.tx .sn_field_length , " RLC AM TX SN" )->capture_default_str ();
327- rlc_tx_am_subcmd->add_option (" --t-poll-retransmit" , rlc_am_params.tx .t_poll_retx , " RLC AM TX SN " )
326+ rlc_tx_am_subcmd->add_option (" --sn" , rlc_am_params.tx .sn_field_length , " RLC AM TX SN size " )->capture_default_str ();
327+ rlc_tx_am_subcmd->add_option (" --t-poll-retransmit" , rlc_am_params.tx .t_poll_retx , " RLC AM TX t-PollRetransmit (ms) " )
328328 ->capture_default_str ();
329- rlc_tx_am_subcmd->add_option (" --max-retx-threshold" , rlc_am_params.tx .max_retx_thresh , " RLC AM TX SN " )
329+ rlc_tx_am_subcmd->add_option (" --max-retx-threshold" , rlc_am_params.tx .max_retx_thresh , " RLC AM max retx threshold " )
330330 ->capture_default_str ();
331- rlc_tx_am_subcmd->add_option (" --poll-pdu" , rlc_am_params.tx .poll_pdu , " RLC AM TX SN " )->capture_default_str ();
332- rlc_tx_am_subcmd->add_option (" --poll-byte" , rlc_am_params.tx .poll_byte , " RLC AM TX SN " )->capture_default_str ();
331+ rlc_tx_am_subcmd->add_option (" --poll-pdu" , rlc_am_params.tx .poll_pdu , " RLC AM TX PollPdu " )->capture_default_str ();
332+ rlc_tx_am_subcmd->add_option (" --poll-byte" , rlc_am_params.tx .poll_byte , " RLC AM TX PollByte " )->capture_default_str ();
333333 CLI::App* rlc_rx_am_subcmd = app.add_subcommand (" rx" , " AM RX parameters" );
334334 rlc_rx_am_subcmd->add_option (" --sn" , rlc_am_params.rx .sn_field_length , " RLC AM RX SN" )->capture_default_str ();
335- rlc_rx_am_subcmd->add_option (" --t-reassembly" , rlc_am_params.rx .t_reassembly , " RLC AM RX SN" )->capture_default_str ();
336- rlc_rx_am_subcmd->add_option (" --t-status-prohibit" , rlc_am_params.rx .t_status_prohibit , " RLC AM RX SN" )
335+ rlc_rx_am_subcmd->add_option (" --t-reassembly" , rlc_am_params.rx .t_reassembly , " RLC AM RX t-Reassembly" )
336+ ->capture_default_str ();
337+ rlc_rx_am_subcmd->add_option (" --t-status-prohibit" , rlc_am_params.rx .t_status_prohibit , " RLC AM RX t-StatusProhibit" )
337338 ->capture_default_str ();
338339}
339340
@@ -375,7 +376,7 @@ void srsran::configure_cli11_with_gnb_appconfig_schema(CLI::App& app, gnb_appcon
375376 configure_cli11_rf_driver_args (*rf_driver_subcmd, gnb_cfg.rf_driver_cfg );
376377
377378 // Common cell parameters.
378- CLI::App* common_cell_subcmd = app.add_subcommand (" common_cell " , " Common cell parameters " )->configurable ();
379+ CLI::App* common_cell_subcmd = app.add_subcommand (" cell_cfg " , " Cell configuration " )->configurable ();
379380 configure_cli11_common_cell_args (*common_cell_subcmd, gnb_cfg.common_cell_cfg );
380381 // Configure the cells to use the common cell parameters once it has been parsed and before parsing the cells.
381382 common_cell_subcmd->parse_complete_callback ([&gnb_cfg]() {
@@ -413,7 +414,7 @@ void srsran::configure_cli11_with_gnb_appconfig_schema(CLI::App& app, gnb_appcon
413414 // Prepare the radio bearers
414415 gnb_cfg.qos_cfg .resize (values.size ());
415416
416- // // Format every QoS setting.
417+ // Format every QoS setting.
417418 for (unsigned i = 0 , e = values.size (); i != e; ++i) {
418419 CLI::App subapp (" QoS parameters" );
419420 subapp.config_formatter (create_yaml_config_parser ());
@@ -426,7 +427,6 @@ void srsran::configure_cli11_with_gnb_appconfig_schema(CLI::App& app, gnb_appcon
426427 app.add_option_function <std::vector<std::string>>(" --qos" , qos_lambda, " qos" );
427428
428429 // Expert PHY section.
429- CLI::App* expert_phy_subcmd =
430- app.add_subcommand (" expert_phy" , " Expert physical layer configuration." )->configurable ();
430+ CLI::App* expert_phy_subcmd = app.add_subcommand (" expert_phy" , " Expert physical layer configuration" )->configurable ();
431431 configure_cli11_expert_phy_args (*expert_phy_subcmd, gnb_cfg.expert_phy_cfg );
432432}
0 commit comments