yourmom 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/yourmom +13 -2
- data/lib/yourmom/version.rb +1 -1
- metadata +1 -1
data/bin/yourmom
CHANGED
|
@@ -4,12 +4,23 @@ require 'yourmom/version'
|
|
|
4
4
|
require 'trollop'
|
|
5
5
|
|
|
6
6
|
opts = Trollop::options do
|
|
7
|
+
version "yourmom Version #{Yourmom::VERSION}\n"
|
|
7
8
|
banner <<-EOS
|
|
8
9
|
--------------------------------------------------------------------------------
|
|
9
10
|
Your Mom.
|
|
10
11
|
Guess where she was last night.
|
|
11
12
|
--------------------------------------------------------------------------------
|
|
12
13
|
EOS
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
stop_on ['where']
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
cmd = ARGV.shift # get the subcommand
|
|
18
|
+
|
|
19
|
+
case cmd
|
|
20
|
+
when "where", "where-is-she"
|
|
21
|
+
puts "my house\n"
|
|
22
|
+
when "with-who", "with-whom"
|
|
23
|
+
puts "me\n"
|
|
24
|
+
else
|
|
25
|
+
puts "She loves me.\n"
|
|
15
26
|
end
|
data/lib/yourmom/version.rb
CHANGED