examples/_src/args/cast.erb.rb in cl-1.2.2 vs examples/_src/args/cast.erb.rb in cl-1.2.3
- old
+ new
@@ -4,17 +4,21 @@
<%= run sq(<<-'rb')
require 'cl'
module Cast
class Bool < Cl::Cmd
+ register :bool
+
arg :bool, type: :bool
def run
p cmd: registry_key, bool: bool
end
end
class Types < Cl::Cmd
+ register :types
+
arg :a, type: :bool
arg :b, type: :int
arg :c, type: :float
arg :d