This allows users to pass the azimuth and elevation values directly from the command line if they wish. If they pass nothing, the default values are used.
I also included more error handling, such as what happens if the user enters a non-numerical value (ask again until they enter a valid input), and what happens if the start value is larger than the end value (swap the values). If the start and end value of either azimuth or elevation are equal, the program exits with an error message.
The program also now displays a help menu for the command-line arguments if run as "python dish_scan.py --help".
It seems I have two people suggesting changes, I'm new to GitHub so not 100% sure what to do with this, but I'll look through the code and see how much of it I understand :-)
This allows users to pass the azimuth and elevation values directly from the command line if they wish. If they pass nothing, the default values are used.
I also included more error handling, such as what happens if the user enters a non-numerical value (ask again until they enter a valid input), and what happens if the start value is larger than the end value (swap the values). If the start and end value of either azimuth or elevation are equal, the program exits with an error message.
The program also now displays a help menu for the command-line arguments if run as "python dish_scan.py --help".