lib/argy/parser.rb in argy-0.2.2 vs lib/argy/parser.rb in argy-0.2.3
- old
+ new
@@ -73,21 +73,21 @@
# @see Argument#initialize
# @example
# Argy.new do |o|
# o.argument :input
# end
- def argument(*args)
- @arguments << Argument.new(*args)
+ def argument(*args, **opts)
+ @arguments << Argument.new(*args, **opts)
end
# Adds an option
# @see Option#initialize
# @example
# Argy.new do |o|
# o.option :verbose, type: :boolean
# end
- def option(*args)
- @options << Option.new(*args)
+ def option(*args, **opts)
+ @options << Option.new(*args, **opts)
end
# Adds a flag
# @example
# Argy.new do |o|