jingfei195887 opened a new pull request, #3317: URL: https://github.com/apache/nuttx-apps/pull/3317
## Summary Parameters have been added to the `rb` main program to support prepending custom prefixes and appending custom suffixes to the names of files to be downloaded via Ymodem. - Supports `--prepend-prefix/-e`: Prepends a specified custom prefix to the target filename. - Supports `--append-suffix/-a`: Appends a specified custom suffix to the target filename. ## Impact This change only affects the `main` function of the `rb` utility and the associated command-line argument parsing logic within `rb_main.c`. It has no impact on other functional modules or the overall Ymodem transmission core. ## Testing This change has been fully validated through Ymodem file download tests on target devices, using the following representative `rb` command for verification: ``` rb -f /dev -p vela_ -s .bin -a _b -k 16 -i 5 -r 6 ``` Key parameter details for the suffix feature validation: - `-a _b`: Corresponding to the `--append-suffix` option (an additional supplementary suffix parameter, distinct from the basic file format suffix `-s`). This parameter appends the extra supplementary suffix `_b` to downloaded filenames, which functions as a secondary suffix configuration that takes effect in conjunction with the basic suffix `-s .bin`—resulting in a final combined file suffix of `_b.bin`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
