lib/alf/shell/from_argv.rb in alf-shell-0.13.1 vs lib/alf/shell/from_argv.rb in alf-shell-0.14.0

- old
+ new

@@ -13,9 +13,15 @@ c.coercion(Array, Size){|argv,_| throw :next_rule if argv.size > 1 Size.new(Integer(argv.first || 0)) } + # ARGV -> Integer + c.coercion(Array, Integer){|argv,_| + throw :next_rule if argv.size > 1 + Integer(argv.first || 0) + } + # ARGV -> AttrName c.coercion(Array, AttrName){|argv,_| throw :next_rule if argv.size > 1 AttrName.coerce(argv.first) }