examples/readme/opts in cl-0.1.28 vs examples/readme/opts in cl-1.0.0

- old
+ new

@@ -5,25 +5,25 @@ class Add < Cl::Cmd opt '--to GROUP', 'Target group to add owners to' def run - p opts, to, to? + p opts: opts, to: to, to?: to? end end Cl.new('owners').run(%w(add --to one)) # Output: # -# {"to" => "one"} -# "one" -# true +# {:opts=>{:to=>"one"}, :to=>"one", :to?=>true} Cl.new('owners').run(%w(add --help)) -# Usage: opts add [options] +# Output: # -# Options: +# Usage: owners add [options] # -# --to GROUP Target group to add owners to (type: string) -# --help Get help on this command +# Options: +# +# --to GROUP Target group to add owners to (type: string) +# --help Get help on this command