vmbrasseur/iaupload

Add --config flag

vmbrasseur opened this issue · 1 comments

Currently the config file (holds auth keys) is hardcoded as config = "./iaupload.yaml".

  1. Add a command line flag which will allow the user to define a different config file.
  2. Add defensive programming (file exist? can be read? etc.).
  3. Update documentation.

The standard Python library for arg parsing is argparse: https://docs.python.org/2/library/argparse.html