Mercurial > ~darius > hgwebdir.cgi > itunes2mp3
diff itunes2mp3.py @ 3:30f4a5616692 default tip
Fix usage display and arg checking.. Not sure how this worked previously.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 18 Aug 2014 13:38:29 +0930 |
parents | 1681a628ceb4 |
children |
line wrap: on
line diff
--- a/itunes2mp3.py Mon Aug 18 13:38:06 2014 +0930 +++ b/itunes2mp3.py Mon Aug 18 13:38:29 2014 +0930 @@ -70,9 +70,9 @@ os.link(f, dest) if __name__ == "__main__": - if len(sys.argv) != 2: + if len(sys.argv) != 3: print "Bad usage" - print "%s playlist.xml destdir" + print "%s playlist.xml destdir" % (sys.argv[0]) sys.exit(1) compress(sys.argv[1], sys.argv[2])