I am making a script which automatically download and rename albums from bandcamp purchases to my server. For now i am passing sys.argv to the script like
python script.py Artistname Albumname Year DownloadLink Genre
then in the script i set variables like
artist = sys.argv[1]
album = sys.argv[2]
year = sys.argv[3]
link = sys.argv[4]
genre = sys.argv[5]
do commands with these vars
Now i wanted to use argparse instead maybe with a little help commands too. I have read the python docs about it but i cant seems to make it work.. Any help?
You haven't specified an actual problem. That being said, I prefer defining my required args in a function.