Add --config flag
vmbrasseur opened this issue · 1 comments
vmbrasseur commented
Currently the config file (holds auth keys) is hardcoded as config = "./iaupload.yaml"
.
- Add a command line flag which will allow the user to define a different config file.
- Add defensive programming (file exist? can be read? etc.).
- Update documentation.
vmbrasseur commented
The standard Python library for arg parsing is argparse
: https://docs.python.org/2/library/argparse.html