this function basically just filters through the command line args and either tells the script to execute the download or exit