I found the help page to be missing a bit of key info, so I rewrote the help page in the Linux cd command help page style.
rewrote help text
I tried to make the (error) messages look more alike and refactor the corresponding code mainly by using format strings in place of concatenations.
added more verbose help text
unified user messages
made error messages more verbose
fixed typos
added non zero exit codes to error cases for bash script optimization
replaced string concatenations with format()
Along the way I noticed that the program always exits with code 0, despite running into an error.
This lead to problems in integrating this into bash scripts and may lead to confusion down the line, so i added a condition for this in the script init.
added non zero exit codes to error cases for bash script optimization
Also I added a check for wether argument 2 (COM port) was provided and if not, will print the help page and exit gracefully, because it will currently just crash
Hi, at first, great project, love it.
I found the help page to be missing a bit of key info, so I rewrote the help page in the Linux
cd
command help page style.I tried to make the (error) messages look more alike and refactor the corresponding code mainly by using format strings in place of concatenations.
Along the way I noticed that the program always exits with code 0, despite running into an error. This lead to problems in integrating this into bash scripts and may lead to confusion down the line, so i added a condition for this in the script init.
Also I added a check for wether argument 2 (COM port) was provided and if not, will print the help page and exit gracefully, because it will currently just crash
Best Regards from Germany