public
Description: A ruby client for freebase
Clone URL: git://github.com/dustin/ruby-freebase.git
Search Repo:
better support for commandline usage of the artist.rb example
Chris Eppstein (author)
Sun Feb 03 09:32:18 -0800 2008
commit  2f052fc0736bf194598c714a4ad1502d1c881f98
tree    79279fb9148f16eb9ca86554bb97a93a42a55161
parent  d7536822773a2e0a4da4f69863a184259dabafed
...
 
1
2
3
...
15
16
17
 
 
 
 
 
 
 
 
 
 
18
19
20
...
1
2
3
4
...
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
0
@@ -1,3 +1,4 @@
0
+#!/usr/bin/env ruby
0
 # (c) Copyright 2007 Chris Eppstein. All Rights Reserved.
0
 # Usage:
0
 # ruby albums.rb "The Police"
0
@@ -15,6 +16,16 @@
0
   end
0
 end
0
 
0
+def usage
0
+%Q{Usage:
0
+ ruby albums.rb artist_name_in_english
0
+}
0
+end
0
+
0
+unless ARGV[0]
0
+ puts usage
0
+ exit 1
0
+end
0
 
0
 artist = Freebase::Types::Music::Artist.find(:first,
0
   :conditions => {

Comments

    No one has commented yet.