Skip to content

Commit

Permalink
Adding logic to deal with different options
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Nov 6, 2011
1 parent d4ab9ac commit 4dbc4c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions soundcloud.py
Expand Up @@ -6,8 +6,9 @@
parser = OptionParser()
parser.add_option("-u", "--url")
(options, args) = parser.parse_args()
if not options.url:
if not options:
print "Need to give a URL silly"
else:
# compose a url with uid and token and request the mpeg
download(options.url)
if options.url:
download(options.url)

0 comments on commit 4dbc4c4

Please sign in to comment.