linen 0.6.3 → 0.6.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/lib/linen.rb +2 -2
- data/lib/linen/argument.rb +1 -1
- data/lib/linen/handlers/cli.rb +0 -2
- data/lib/linen/simple_command.rb +3 -2
- metadata +1 -1
data/lib/linen.rb
CHANGED
data/lib/linen/argument.rb
CHANGED
data/lib/linen/handlers/cli.rb
CHANGED
data/lib/linen/simple_command.rb
CHANGED
@@ -137,8 +137,7 @@ class Linen::Plugin::SimpleCommand
|
|
137
137
|
"The value you entered ('#{arg}') is invalid for all arguments." if
|
138
138
|
results.values.compact.empty?
|
139
139
|
rescue Linen::Plugin::ArgumentError => e
|
140
|
-
|
141
|
-
|
140
|
+
puts e.message
|
142
141
|
arg = Linen::CLI.reprompt.split.first
|
143
142
|
|
144
143
|
retry
|
@@ -160,6 +159,8 @@ class Linen::Plugin::SimpleCommand
|
|
160
159
|
|
161
160
|
results[ arg_name ] = argument.process( arg_value )
|
162
161
|
rescue Linen::Plugin::ArgumentError => e
|
162
|
+
puts e.message
|
163
|
+
|
163
164
|
# reset arg_value to nil so we get prompted on retry
|
164
165
|
arg_value = nil
|
165
166
|
|