This is a first round of refactoring that addresses the need for a proper command line argument structure. Instead of relying on argv/argc and the correct placement of variables this instead converts the application to use more traditional arguments, allowing for placement in any order and clear help (available with -h).
Additionally as a more minor point there are also some pep8 changes and a call to main where I identified them.
Feel free to recommend any changes or improvements before merging!
This is a first round of refactoring that addresses the need for a proper command line argument structure. Instead of relying on argv/argc and the correct placement of variables this instead converts the application to use more traditional arguments, allowing for placement in any order and clear help (available with -h).
Additionally as a more minor point there are also some pep8 changes and a call to main where I identified them.
Feel free to recommend any changes or improvements before merging!