examples/readme/alias in cl-0.1.28 vs examples/readme/alias in cl-1.0.0
- old
+ new
@@ -5,18 +5,15 @@
class Add < Cl::Cmd
opt '--to GROUP', alias: :group
def run
- p opts, to, to?, group, group?
+ # p opts: opts, to: to, to?: to?, group: group, group?: group?
+ p opts: opts, to: to, to?: to?
end
end
-Cl.new('owners').run(%w(add --to one))
+Cl.new('owners').run(%w(add --group one))
# Output:
#
-# {"to" => "one"}
-# "one"
-# true
-# "one"
-# true
+# {:opts=>{:to=>"one", :group=>"one"}, :to=>"one", :to?=>true}