print('PLEASE REFER TO THE -h OPTION FOR OFFICIAL HELP MESSAGE!!!')
#after processing information all within the scope of this script, thinsg need to be written out in temp_cddb, then eventually replacing cddb
defupdate(albumDict):
temp=open('temp_cddb','a')
forkeyinalbumDict.keys():
...
...
@@ -289,20 +253,12 @@ def update(albumDict):
forlineintempLines:
cddb.write("%s"%line)
withopen("temp_old",'a')asold:
withopen("temp_old",'w')asold:
forlineincdLine:
old.write("%s"%line)
#lUti(albumDict)
#add(albumDict)
#update(albumDict)
defmain():
parser=argparse.ArgumentParser(description="A command line utility to manage a CD database")
parser.add_argument("-l",'--list',help="List all the songs in an album. Provide 2 step-choosing mechanism: \n 1. to choose the artist, and 2. choose the album to display",action="store_true")