aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGearnode <bryan@frimin.fr>2019-09-01 10:36:06 +0200
committerGearnode <bryan@frimin.fr>2019-09-01 10:36:06 +0200
commitf8ac946058c213137fdc9b36e9d8040830bc7421 (patch)
treeac9f593d98e6b74a625d27b00b86a114a7c566d1
parenteabe1fa49a380fd61238785236bca2ebb256d826 (diff)
fix argument_value method returns arg name instead of arg value
-rw-r--r--lib/cmdline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmdline.rb b/lib/cmdline.rb
index 780630b..5c2a940 100644
--- a/lib/cmdline.rb
+++ b/lib/cmdline.rb
@@ -360,7 +360,7 @@ module Cmdline
def argument_value(name)
self.arguments.each do |arg|
if arg.name == name
- return arg.name
+ return arg.value
end
end
raise(ArgumentError, "unknown argument")