Skip to content

Commit

Permalink
Added a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
tavisca-pkadam committed Jul 2, 2019
1 parent c878318 commit 288eb42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hello.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
puts "Hello, #{ARGV.first}!"
name = ARGV.first || "World"

puts "Hello, #{name}!"

0 comments on commit 288eb42

Please sign in to comment.