Skip to content

Commit

Permalink
Use File#basename.
Browse files Browse the repository at this point in the history
  • Loading branch information
aasmith committed Dec 24, 2010
1 parent 184494f commit 66d4072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/oh
@@ -1,12 +1,15 @@
#!/usr/bin/env ruby

require 'rubygems'
require 'oh'
require 'ohbjects'
Ohbjects.activate

username, *symbols = ARGV

abort "Usage: #{$0} [username] [symbol ...]" unless username and !symbols.empty?
unless username and !symbols.empty?
abort "Usage: #{File.basename($0)} [username] [symbol ...]"
end

begin
print "Password: "
Expand Down

0 comments on commit 66d4072

Please sign in to comment.