Skip to content

Commit

Permalink
Add usage output to STDOUT for playing script
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael de Silva committed Oct 6, 2015
1 parent fb1ab2a commit 366645e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions koans/greed/play_greed.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + "/lib/greed")

if ARGV.empty?
STDOUT.puts <<-EOF
Please provide player names
Usage:
play_greed [NAMES]
EOF
abort
end

Greed::Game.start_game(*ARGV)

0 comments on commit 366645e

Please sign in to comment.