Skip to content
Browse files

Adding logic to deal with different options

  • Loading branch information...
1 parent d4ab9ac commit 4dbc4c409264342845c00698bd4d6c87df68eefa David committed Nov 5, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 soundcloud.py
View
5 soundcloud.py
@@ -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.
Something went wrong with that request. Please try again.